diff options
-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 6449de0e0e..f78c368eb8 100644 --- a/source3/libsmb/namequery.c +++ b/source3/libsmb/namequery.c @@ -572,6 +572,8 @@ struct in_addr *name_query(int fd,const char *name,int name_type, if (!tmp_ip_list) { DEBUG(0,("name_query: Realloc failed.\n")); SAFE_FREE(ip_list); + free_packet(p2); + return( NULL ); } ip_list = tmp_ip_list; |