summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules/samldb.c
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-09-12 15:05:19 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-09-12 19:23:05 +0200
commit22d42432acb158a7b0ebb4faee3aebd53a494efd (patch)
tree70370d476c4285da42b4318eec2daa4252732e7f /source4/dsdb/samdb/ldb_modules/samldb.c
parent1d94bb3ad4d9c6de3b77ed4690a54ebf2399cc0d (diff)
downloadsamba-22d42432acb158a7b0ebb4faee3aebd53a494efd.tar.gz
samba-22d42432acb158a7b0ebb4faee3aebd53a494efd.tar.bz2
samba-22d42432acb158a7b0ebb4faee3aebd53a494efd.zip
s4:samldb LDB module - free the "ac" context after the delete checks
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/samldb.c')
-rw-r--r--source4/dsdb/samdb/ldb_modules/samldb.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/samldb.c b/source4/dsdb/samdb/ldb_modules/samldb.c
index a8a9f23079..85038314ba 100644
--- a/source4/dsdb/samdb/ldb_modules/samldb.c
+++ b/source4/dsdb/samdb/ldb_modules/samldb.c
@@ -1313,14 +1313,17 @@ static int samldb_delete(struct ldb_module *module, struct ldb_request *req)
}
ac = samldb_ctx_init(module, req);
- if (ac == NULL)
+ if (ac == NULL) {
return ldb_operr(ldb_module_get_ctx(module));
+ }
ret = samldb_prim_group_users_check(ac);
if (ret != LDB_SUCCESS) {
return ret;
}
+ talloc_free(ac);
+
return ldb_next_request(module, req);
}