diff options
author | Günther Deschner <gd@samba.org> | 2008-01-07 14:15:48 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-01-07 14:53:07 +0100 |
commit | 02f67cfcfa09245e79ecbe41dfadd04f5418253a (patch) | |
tree | 1e014542a966bc9fcc83df119a559addc1f990b0 | |
parent | be7df54c3912a2db024f19d789d385e99ed98917 (diff) | |
download | samba-02f67cfcfa09245e79ecbe41dfadd04f5418253a.tar.gz samba-02f67cfcfa09245e79ecbe41dfadd04f5418253a.tar.bz2 samba-02f67cfcfa09245e79ecbe41dfadd04f5418253a.zip |
Add free_local_machine_name().
Guenther
(This used to be commit f3ebb4f96bb0364dae9924e798652e759b63bb52)
-rw-r--r-- | source3/lib/substitute.c | 5 | ||||
-rw-r--r-- | source3/lib/util.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/source3/lib/substitute.c b/source3/lib/substitute.c index 80feee9579..59b54c4dff 100644 --- a/source3/lib/substitute.c +++ b/source3/lib/substitute.c @@ -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; diff --git a/source3/lib/util.c b/source3/lib/util.c index c69a1450a0..25b2700ae3 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -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 ) |