diff options
Diffstat (limited to 'source3/lib/util_str.c')
-rw-r--r-- | source3/lib/util_str.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c index 565703a800..8518d75a49 100644 --- a/source3/lib/util_str.c +++ b/source3/lib/util_str.c @@ -632,8 +632,7 @@ void string_free(char **s) if (!s || !(*s)) return; if (*s == null_string) *s = NULL; - if (*s) free(*s); - *s = NULL; + SAFE_FREE(*s); } /**************************************************************************** |