From 03b32953cf74178a8e591d46cbf932828cf9fd55 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 7 Mar 2006 20:44:12 +0000 Subject: r13987: Fix Coverity bug # 74. This tool is good... Thanks, Volker (This used to be commit 86f62484dd7db43e036d9edf29e459b8bd0e5fbe) --- source3/libsmb/namequery.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/libsmb') 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 { -- cgit