From a12e8524997e329a4f4cd766d6371e384698795a Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 17 Mar 2003 04:42:57 +0000 Subject: [PATCH] Fix a memory leak - 'smbcontrol smbd pool-usage' is your freind! Andrew Bartlett --- source/libsmb/trusts_util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/libsmb/trusts_util.c b/source/libsmb/trusts_util.c index f7b2c2e3a62..b8f84ba890a 100644 --- a/source/libsmb/trusts_util.c +++ b/source/libsmb/trusts_util.c @@ -155,6 +155,8 @@ BOOL is_trusted_domain(const char* dom_name) } } while (NT_STATUS_EQUAL(result, STATUS_MORE_ENTRIES)); + talloc_destroy(mem_ctx); + /* * Query the trustdom_cache updated periodically. The only * way for domain member server.