summaryrefslogtreecommitdiff
path: root/source4/lib/ldb-samba
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-09-01 19:56:56 +1000
committerAndrew Tridgell <tridge@samba.org>2009-09-23 14:01:30 -0700
commitf28219d1a117bf02746679de5e9e25103fd83b29 (patch)
tree65f1971582b99d1e621c3d47d3d89dd32ec1db73 /source4/lib/ldb-samba
parent10f86114debaff6ca4c8baac38e39db49615d027 (diff)
downloadsamba-f28219d1a117bf02746679de5e9e25103fd83b29.tar.gz
samba-f28219d1a117bf02746679de5e9e25103fd83b29.tar.bz2
samba-f28219d1a117bf02746679de5e9e25103fd83b29.zip
s4:ldif_handlers Fix memory leak in objectCategory LDIF handler
Diffstat (limited to 'source4/lib/ldb-samba')
-rw-r--r--source4/lib/ldb-samba/ldif_handlers.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/lib/ldb-samba/ldif_handlers.c b/source4/lib/ldb-samba/ldif_handlers.c
index d1bdd957ee..43a10450d1 100644
--- a/source4/lib/ldb-samba/ldif_handlers.c
+++ b/source4/lib/ldb-samba/ldif_handlers.c
@@ -432,6 +432,7 @@ static int ldif_canonicalise_objectCategory(struct ldb_context *ldb, void *mem_c
}
if (!schema) {
+ talloc_free(tmp_ctx);
*out = data_blob_talloc(mem_ctx, in->data, in->length);
if (in->data && !out->data) {
return LDB_ERR_OPERATIONS_ERROR;