From 484a7c0341fe033fe26fe1e6b597ed1c456c39d4 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 17 Sep 2001 02:19:44 +0000 Subject: move to SAFE_FREE() (This used to be commit 60e907b7e8e1c008463a88ed2b076344278986ef) --- source3/lib/util_str.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/lib/util_str.c') 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); } /**************************************************************************** -- cgit