curl_free() doesn't free(NULL) but just returns

This commit is contained in:
Daniel Stenberg 2004-05-13 15:16:36 +00:00
parent 594cb8507b
commit 5bf02b16a0
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}