diff options
author | Jeremy Allison <jra@samba.org> | 2004-05-06 23:16:52 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:51:28 -0500 |
commit | 675ecdd5babbcf2d87e807e21375a4c0d81dfa14 (patch) | |
tree | 547cef0695259b57c887e1593a08faae267956cc /source3/libsmb | |
parent | 835eaa42cafb14a76195f6eaa2236f255cd56dda (diff) | |
download | samba-675ecdd5babbcf2d87e807e21375a4c0d81dfa14.tar.gz samba-675ecdd5babbcf2d87e807e21375a4c0d81dfa14.tar.bz2 samba-675ecdd5babbcf2d87e807e21375a4c0d81dfa14.zip |
r539: Mem leak fixes from kawasa_r@itg.hitachi.co.jp
Jeremy.
(This used to be commit 8fe47b0bf27a8ae690ab0fcff377c8fc12919f43)
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/namequery_dc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/libsmb/namequery_dc.c b/source3/libsmb/namequery_dc.c index 31d759e0d2..0c9f19313c 100644 --- a/source3/libsmb/namequery_dc.c +++ b/source3/libsmb/namequery_dc.c @@ -49,8 +49,10 @@ static BOOL ads_dc_name(const char *domain, const char *realm, struct in_addr *d ads_connect(ads); #endif - if (!ads->config.realm) + if (!ads->config.realm) { + ads_destroy(&ads); return False; + } fstrcpy(srv_name, ads->config.ldap_server_name); strupper_m(srv_name); |