summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-10-16 11:57:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:21:10 -0500
commit56bacd2b44f975f34b101561b9a38660dd04d499 (patch)
tree3a192522ed81058937ea4f52cd9a5a8065f1044f /source4/dsdb/samdb
parent8b60b7fa2ad0f707cad5af63566f4dd931a7a6b9 (diff)
downloadsamba-56bacd2b44f975f34b101561b9a38660dd04d499.tar.gz
samba-56bacd2b44f975f34b101561b9a38660dd04d499.tar.bz2
samba-56bacd2b44f975f34b101561b9a38660dd04d499.zip
r19330: Fix memleaks
(This used to be commit f163f422e3f201d8b0e22538949eccf0f7e62143)
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/samldb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/samldb.c b/source4/dsdb/samdb/ldb_modules/samldb.c
index f6070d518c..f589ba859d 100644
--- a/source4/dsdb/samdb/ldb_modules/samldb.c
+++ b/source4/dsdb/samdb/ldb_modules/samldb.c
@@ -130,7 +130,6 @@ static int samldb_find_next_rid(struct ldb_module *module, TALLOC_CTX *mem_ctx,
if (ret != LDB_SUCCESS) {
return ret;
}
- talloc_steal(mem_ctx, res);
if (res->count != 1) {
talloc_free(res);
return LDB_ERR_OPERATIONS_ERROR;
@@ -257,6 +256,7 @@ static int samldb_get_new_sid(struct ldb_module *module,
ldb_asprintf_errstring(module->ldb,
"samldb_get_new_sid: error retrieving domain sid from %s: not found!\n",
ldb_dn_linearize(mem_ctx, dom_dn));
+ talloc_free(res);
return LDB_ERR_CONSTRAINT_VIOLATION;
}