From: Daniel Stenberg Date: Thu, 13 May 2004 15:16:36 +0000 (+0000) Subject: curl_free() doesn't free(NULL) but just returns X-Git-Tag: curl-7_12_0~93 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5bf02b16a00cf0762b293e6df02f527838d7b5c9;p=thirdparty%2Fcurl.git curl_free() doesn't free(NULL) but just returns --- diff --git a/lib/escape.c b/lib/escape.c index 87d3a79e27..600cece7cb 100644 --- a/lib/escape.c +++ b/lib/escape.c @@ -126,5 +126,6 @@ char *curl_unescape(const char *string, int length) the library's memory system */ void curl_free(void *p) { - free(p); + if(p) + free(p); }