summaryrefslogtreecommitdiffstats
path: root/source/libsmb/namequery.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-03-07 20:44:12 +0000
committerVolker Lendecke <vlendec@samba.org>2006-03-07 20:44:12 +0000
commit8e2b586921c8ee8b5ef05c7d9b0a1d626fdeaba6 (patch)
tree6c4a6c271b5e92042b013a22a6cef786859b6cfa /source/libsmb/namequery.c
parentb895b2a83bf173391ff909665e9f0426e9261b80 (diff)
downloadsamba-8e2b586921c8ee8b5ef05c7d9b0a1d626fdeaba6.tar.gz
samba-8e2b586921c8ee8b5ef05c7d9b0a1d626fdeaba6.tar.xz
samba-8e2b586921c8ee8b5ef05c7d9b0a1d626fdeaba6.zip
r13987: Fix Coverity bug # 74. This tool is good...
Thanks, Volker
Diffstat (limited to 'source/libsmb/namequery.c')
-rw-r--r--source/libsmb/namequery.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/libsmb/namequery.c b/source/libsmb/namequery.c
index c721a9deff6..1d40837f2bd 100644
--- a/source/libsmb/namequery.c
+++ b/source/libsmb/namequery.c
@@ -1126,6 +1126,7 @@ BOOL internal_resolve_name(const char *name, int name_type,
/* if it's in the form of an IP address then get the lib to interpret it */
if (((*return_iplist)->ip.s_addr = inet_addr(name)) == 0xFFFFFFFF ){
DEBUG(1,("internal_resolve_name: inet_addr failed on %s\n", name));
+ SAFE_FREE(*return_iplist);
return False;
}
} else {