From 14965b7260f74fe8c49ace21562d913d37d50063 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sat, 6 Sep 2008 12:31:50 -0400 Subject: Always free tmp contexts before returning (This used to be commit 40b71bbd718f6dee70c0611e527f55c56623dea6) --- source4/lib/ldb/common/ldb.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/lib') diff --git a/source4/lib/ldb/common/ldb.c b/source4/lib/ldb/common/ldb.c index ce4796dee2..9e04cc7845 100644 --- a/source4/lib/ldb/common/ldb.c +++ b/source4/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; } -- cgit