mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 15:48:49 -05:00
curl_free() doesn't free(NULL) but just returns
This commit is contained in:
parent
594cb8507b
commit
5bf02b16a0
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user