mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
Curl_thread_create: use Curl_safefree to allow NULL better
free() itself allows a NULL input but our memory debug system requires Curl_safefree() to be used instead when a "legitimate" NULL may be freed. Like in the code here. Pointed-out-by: Steve Holme
This commit is contained in:
parent
e8b57d1e84
commit
0ff0a994ad
@ -77,8 +77,8 @@ curl_thread_t Curl_thread_create(unsigned int (*func) (void*), void *arg)
|
|||||||
return t;
|
return t;
|
||||||
|
|
||||||
err:
|
err:
|
||||||
free(t);
|
Curl_safefree(t);
|
||||||
free(ac);
|
Curl_safefree(ac);
|
||||||
return curl_thread_t_null;
|
return curl_thread_t_null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user