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

source3/libsmb/namequery.c

index e6fe88f203a02df8f32d4a05cf2888283d80a475..98d9661567916db19b097986599b8c2eddf16f5a 100644 (file)
@@ -1316,6 +1316,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 */