mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r539: Mem leak fixes from kawasa_r@itg.hitachi.co.jp
Jeremy.
(This used to be commit 8fe47b0bf2
)
This commit is contained in:
parent
835eaa42ca
commit
675ecdd5ba
@ -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);
|
||||
|
@ -106,6 +106,7 @@ static struct in_addr *lookup_byname_backend(const char *name, int *count)
|
||||
for ( i=0; i<(*count); i++ )
|
||||
return_ip[i] = ret[i].ip;
|
||||
|
||||
free( ret );
|
||||
return return_ip;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user