summaryrefslogtreecommitdiff
path: root/source3/lib/version.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/version.c')
-rw-r--r--source3/lib/version.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/version.c b/source3/lib/version.c
index cbb70ae8a6..3cae02ad2e 100644
--- a/source3/lib/version.c
+++ b/source3/lib/version.c
@@ -51,7 +51,8 @@ const char *samba_version_string(void)
*/
assert(res != -1);
- free(samba_version);
+ SAFE_FREE(samba_version);
+
samba_version = tmp_version;
#endif