diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-10-03 15:08:19 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-10-03 15:49:40 +0200 |
commit | 24422fae24744f9c9113342692db285ba1409799 (patch) | |
tree | 6d453b7013da7b526b8d3c6b75a3932dee7f7c7b /source4/dsdb | |
parent | cb143eafef1dae1e055454fa3a5e90183e6c4f5d (diff) | |
download | samba-24422fae24744f9c9113342692db285ba1409799.tar.gz samba-24422fae24744f9c9113342692db285ba1409799.tar.bz2 samba-24422fae24744f9c9113342692db285ba1409799.zip |
s4:objectclass - Free unused memory from responses
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/objectclass.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/objectclass.c b/source4/dsdb/samdb/ldb_modules/objectclass.c index 51a1ac845e..b6f1a1aa23 100644 --- a/source4/dsdb/samdb/ldb_modules/objectclass.c +++ b/source4/dsdb/samdb/ldb_modules/objectclass.c @@ -881,6 +881,8 @@ static int oc_modify_callback(struct ldb_request *req, struct ldb_reply *ares) LDB_ERR_OPERATIONS_ERROR); } + talloc_free(ares); + ret = ldb_build_search_req(&search_req, ldb, ac, ac->req->op.mod.message->dn, LDB_SCOPE_BASE, "(objectClass=*)", @@ -1089,6 +1091,7 @@ static int objectclass_rename_callback(struct ldb_request *req, struct ldb_reply ares->response, ares->error); } + talloc_free(ares); /* the ac->search_res should contain the new parents objectGUID */ parent_guid = ldb_msg_find_ldb_val(ac->search_res->message, "objectGUID"); |