From 0f4a03cbb6fdb84d05cb6aafe50444edad4f4119 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 16 Mar 2015 15:01:15 +0100 Subject: free: instead of Curl_safefree() Since we just started make use of free(NULL) in order to simplify code, this change takes it a step further and: - converts lots of Curl_safefree() calls to good old free() - makes Curl_safefree() not check the pointer before free() The (new) rule of thumb is: if you really want a function call that frees a pointer and then assigns it to NULL, then use Curl_safefree(). But we will prefer just using free() from now on. --- tests/data/test96 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/data/test96') diff --git a/tests/data/test96 b/tests/data/test96 index 3d9a933a0..27044bc99 100644 --- a/tests/data/test96 +++ b/tests/data/test96 @@ -37,7 +37,7 @@ MEM tool_cfgable.c MEM tool_cfgable.c -$_ = '' if (($_ !~ /tool_paramhlp/) && ($_ !~ /tool_cfgable/)) +$_ = '' if ((($_ !~ /tool_paramhlp/) && ($_ !~ /tool_cfgable/)) || ($_ =~ /free\(\(nil\)\)/)) s/:\d+.*// s:^(MEM )(.*/)(.*):$1$3: -- cgit v1.2.3