diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-09-12 15:05:19 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-09-12 19:23:05 +0200 |
commit | 22d42432acb158a7b0ebb4faee3aebd53a494efd (patch) | |
tree | 70370d476c4285da42b4318eec2daa4252732e7f /source4/dsdb/samdb/ldb_modules/samldb.c | |
parent | 1d94bb3ad4d9c6de3b77ed4690a54ebf2399cc0d (diff) | |
download | samba-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.c | 5 |
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); } |