1
0
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:
Daniel Stenberg 2013-12-25 00:53:15 +01:00
parent e8b57d1e84
commit 0ff0a994ad

View File

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