git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1eec5b
)
ldb: use TALLOC_FREE() over talloc_free() in ldb_filter_attrs()
author
Andrew Bartlett
<abartlet@samba.org>
Mon, 26 Aug 2019 02:48:52 +0000
(14:48 +1200)
committer
Andrew Bartlett
<abartlet@samba.org>
Mon, 26 Aug 2019 23:59:36 +0000
(23:59 +0000)
This is a macro that sets the pointer to NULL after the talloc_free()
and is part of our standard coding practices.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
lib/ldb/common/ldb_pack.c
patch
|
blob
|
history
diff --git
a/lib/ldb/common/ldb_pack.c
b/lib/ldb/common/ldb_pack.c
index 1d67622b69e3fbc3dbbaee3ea95e5f536359e385..b5e1fbbc4ffc87c805446a4a209c2645ae035ba8 100644
(file)
--- a/
lib/ldb/common/ldb_pack.c
+++ b/
lib/ldb/common/ldb_pack.c
@@
-1251,8
+1251,7
@@
int ldb_filter_attrs(struct ldb_context *ldb,
goto failed;
}
} else {
- talloc_free(filtered_msg->elements);
- filtered_msg->elements = NULL;
+ TALLOC_FREE(filtered_msg->elements);
}
return 0;