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
1 changed files with 2 additions and 2 deletions

View File

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