diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-01-08 08:09:29 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:16:57 -0500 |
commit | 395d304f225a855a7c032dd18c12e9fd0b1a284c (patch) | |
tree | 3c88e24351e5b8e3c0710f1c292d03bcb728cbb7 /source3/libsmb | |
parent | 3ab9f619d822cd39cc23d0cdca04eb483e026ee8 (diff) | |
download | samba-395d304f225a855a7c032dd18c12e9fd0b1a284c.tar.gz samba-395d304f225a855a7c032dd18c12e9fd0b1a284c.tar.bz2 samba-395d304f225a855a7c032dd18c12e9fd0b1a284c.zip |
r20604: Fix two memleaks, Coverity ID 337, merge to 3_0_24
(This used to be commit 44f9d25a9026df29fcaae8723ef52b1d3101628b)
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/namequery.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c index 13d3517cdd..065bb810c5 100644 --- a/source3/libsmb/namequery.c +++ b/source3/libsmb/namequery.c @@ -1507,6 +1507,7 @@ static NTSTATUS get_dc_list(const char *domain, struct ip_service **ip_list, if ( (num_addresses == 0) ) { if ( done_auto_lookup ) { DEBUG(4,("get_dc_list: no servers found\n")); + SAFE_FREE(auto_ip_list); return NT_STATUS_NO_LOGON_SERVERS; } if (internal_resolve_name(domain, 0x1C, ip_list, count, @@ -1519,6 +1520,7 @@ static NTSTATUS get_dc_list(const char *domain, struct ip_service **ip_list, if ( (return_iplist = SMB_MALLOC_ARRAY(struct ip_service, num_addresses)) == NULL ) { DEBUG(3,("get_dc_list: malloc fail !\n")); + SAFE_FREE(auto_ip_list); return NT_STATUS_NO_MEMORY; } |