summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-03-17 04:42:57 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-03-17 04:42:57 +0000
commit0ab29d6186135bd66c4154b545ac8323232a6f2e (patch)
treecb8a2c9b0c30938672fdbaf896b70a8255be73e3 /source3/libsmb
parent077e093d8ae79519baa7edc0c4cbd5b4b853a19a (diff)
downloadsamba-0ab29d6186135bd66c4154b545ac8323232a6f2e.tar.gz
samba-0ab29d6186135bd66c4154b545ac8323232a6f2e.tar.bz2
samba-0ab29d6186135bd66c4154b545ac8323232a6f2e.zip
Fix a memory leak - 'smbcontrol smbd pool-usage' is your freind!
Andrew Bartlett (This used to be commit a12e8524997e329a4f4cd766d6371e384698795a)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/trusts_util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/libsmb/trusts_util.c b/source3/libsmb/trusts_util.c
index f7b2c2e3a6..b8f84ba890 100644
--- a/source3/libsmb/trusts_util.c
+++ b/source3/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.