summaryrefslogtreecommitdiff
path: root/lib/escape.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-05-13 15:16:36 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-05-13 15:16:36 +0000
commit5bf02b16a00cf0762b293e6df02f527838d7b5c9 (patch)
tree1ab247641175e1e313d1779b0a11763305fa0860 /lib/escape.c
parent594cb8507bef298a5955067ade353128f2c2b6da (diff)
downloadcurl-5bf02b16a00cf0762b293e6df02f527838d7b5c9.tar.gz
curl_free() doesn't free(NULL) but just returns
Diffstat (limited to 'lib/escape.c')
-rw-r--r--lib/escape.c3
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);
}