mirror of
https://github.com/curl/curl.git
synced 2026-07-23 00:57:24 +03:00
curl_free() doesn't free(NULL) but just returns
This commit is contained in:
parent
594cb8507b
commit
5bf02b16a0
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue