Add free_local_machine_name().
authorGünther Deschner <gd@samba.org>
Mon, 7 Jan 2008 13:15:48 +0000 (14:15 +0100)
committerGünther Deschner <gd@samba.org>
Mon, 7 Jan 2008 13:53:07 +0000 (14:53 +0100)
Guenther

source/lib/substitute.c
source/lib/util.c

index 80feee95790d4323d418d3d263837827fa8b6cf8..59b54c4dff00b06875ebfef8cad2e56a5987746f 100644 (file)
@@ -34,6 +34,11 @@ fstring remote_proto="UNKNOWN";
 
 static char *local_machine;
 
+void free_local_machine_name(void)
+{
+       SAFE_FREE(local_machine);
+}
+
 bool set_local_machine_name(const char *local_name, bool perm)
 {
        static bool already_perm = false;
index c69a1450a0ff37af93e490778e2a24a7a9105825..25b2700ae3db688a020310a4cf56db8e678a8b28 100644 (file)
@@ -183,6 +183,7 @@ void gfree_names(void)
        SAFE_FREE( smb_myworkgroup );
        SAFE_FREE( smb_scope );
        free_netbios_names_array();
+       free_local_machine_name();
 }
 
 void gfree_all( void )