From: Simo Sorce Date: Sat, 6 Sep 2008 16:31:50 +0000 (-0400) Subject: Always free tmp contexts before returning X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40b71bbd718f6dee70c0611e527f55c56623dea6;p=thirdparty%2Fsamba.git Always free tmp contexts before returning --- diff --git a/source/lib/ldb/common/ldb.c b/source/lib/ldb/common/ldb.c index ce4796dee2b..9e04cc78450 100644 --- a/source/lib/ldb/common/ldb.c +++ b/source/lib/ldb/common/ldb.c @@ -97,6 +97,7 @@ void ldb_set_default_dns(struct ldb_context *ldb) if (res->count != 1) { talloc_free(res); + talloc_free(tmp_ctx); return; }