mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -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;
|
||||
|
||||
err:
|
||||
free(t);
|
||||
free(ac);
|
||||
Curl_safefree(t);
|
||||
Curl_safefree(ac);
|
||||
return curl_thread_t_null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user