s4-dsdb Don't talloc_free() ares on failure, as LDB might free it later
authorAndrew Bartlett <abartlet@samba.org>
Thu, 16 Dec 2010 04:51:55 +0000 (15:51 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 16 Dec 2010 05:42:56 +0000 (06:42 +0100)
We need to make LDB consistent here (indexed vs unindexed behaviour
differs here!), but for the moment this is the easiest way out of a
segfault.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Dec 16 06:42:56 CET 2010 on sn-devel-104

source4/dsdb/samdb/ldb_modules/descriptor.c

index 0ea91ba60071ee595dd3710c4c151baf7d1c7d5f..b96e5b5ccd6dfd7314c5386f3c649dad7c967d3a 100644 (file)
@@ -545,7 +545,6 @@ static int descriptor_search_callback(struct ldb_request *req, struct ldb_reply
        }
 
 fail:
-       talloc_free(ares);
        return ldb_module_done(ac->req, NULL, NULL, ret);
 }