summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-03-07 20:44:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:11:03 -0500
commit03b32953cf74178a8e591d46cbf932828cf9fd55 (patch)
treeca7f853c5fa598aeaf2a1546586862a8c5a335ed
parenta78d2a85fbd2fb80187df2970f438dbe485c0454 (diff)
downloadsamba-03b32953cf74178a8e591d46cbf932828cf9fd55.tar.gz
samba-03b32953cf74178a8e591d46cbf932828cf9fd55.tar.bz2
samba-03b32953cf74178a8e591d46cbf932828cf9fd55.zip
r13987: Fix Coverity bug # 74. This tool is good...
Thanks, Volker (This used to be commit 86f62484dd7db43e036d9edf29e459b8bd0e5fbe)
-rw-r--r--source3/libsmb/namequery.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c
index c721a9deff..1d40837f2b 100644
--- a/source3/libsmb/namequery.c
+++ b/source3/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 {