From: Andrew Tridgell Date: Fri, 10 Sep 2010 10:15:27 +0000 (+1000) Subject: s4-dsdb: free right context on failure X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=597372df34ba48b96e5c9cad4d552ce1b932b66e;p=kamenim%2Fsamba.git s4-dsdb: free right context on failure down_req is not initialised yet --- diff --git a/source4/dsdb/samdb/ldb_modules/objectguid.c b/source4/dsdb/samdb/ldb_modules/objectguid.c index b7dbb51bd7..8ab49d1472 100644 --- a/source4/dsdb/samdb/ldb_modules/objectguid.c +++ b/source4/dsdb/samdb/ldb_modules/objectguid.c @@ -166,7 +166,7 @@ static int objectguid_add(struct ldb_module *module, struct ldb_request *req) /* we have to copy the message as the caller might have it as a const */ msg = ldb_msg_copy_shallow(ac, req->op.add.message); if (msg == NULL) { - talloc_free(down_req); + talloc_free(ac); return ldb_operr(ldb); }