summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2019-08-26 14:48:52 +1200
committerKarolin Seeger <kseeger@samba.org>2019-09-04 08:31:24 +0000
commit11427be15ed6701fb2a15830846b57fe5e62fb42 (patch)
tree89ade4bc8fd19f58eb6391c7697812b339387870 /lib
parent9c677a274d49026105c72c5b4767b1d88eff77fa (diff)
downloadsamba-11427be15ed6701fb2a15830846b57fe5e62fb42.tar.gz
ldb: use TALLOC_FREE() over talloc_free() in ldb_filter_attrs()
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> (cherry picked from commit 2117789c35fbf6d0ed02f391f17593e11727ec3e)
Diffstat (limited to 'lib')
-rw-r--r--lib/ldb/common/ldb_pack.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ldb/common/ldb_pack.c b/lib/ldb/common/ldb_pack.c
index 1d67622b69e..b5e1fbbc4ff 100644
--- 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;