Doing janitorial duty for tpot - memory leak fix.
authorJeremy Allison <jra@samba.org>
Wed, 4 Dec 2002 18:40:01 +0000 (18:40 +0000)
committerJeremy Allison <jra@samba.org>
Wed, 4 Dec 2002 18:40:01 +0000 (18:40 +0000)
Jeremy.
(This used to be commit c6da50def80e64226c7e5b310dce30d0490512cb)

source3/libsmb/namequery.c

index c781e98365ff85e92abfdab94ee5c24ba6afc86f..7aaa7d5908c9c809b893ba011d3c59f5caa0521c 100644 (file)
@@ -1314,6 +1314,8 @@ BOOL get_dc_list(const char *domain, struct in_addr **ip_list, int *count, int *
                                
                }
                                
+               SAFE_FREE(auto_ip_list);
+
                /* need to remove duplicates in the list if we have 
                   any explicit password servers */