diff options
-rw-r--r-- | lib/escape.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/escape.c b/lib/escape.c index 87d3a79e2..600cece7c 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); } |