summaryrefslogtreecommitdiff
path: root/lib/curl_threads.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2013-12-25 00:53:15 +0100
committerDaniel Stenberg <daniel@haxx.se>2013-12-25 00:53:15 +0100
commit0ff0a994ada62aa1f34c8f729b9ef2ded9b0e2a9 (patch)
tree60716216dc1561389abac27d8639611d5a8e288b /lib/curl_threads.c
parente8b57d1e849c80652b762130f38beeb0d431b23f (diff)
downloadcurl-0ff0a994ada62aa1f34c8f729b9ef2ded9b0e2a9.tar.gz
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
Diffstat (limited to 'lib/curl_threads.c')
-rw-r--r--lib/curl_threads.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/curl_threads.c b/lib/curl_threads.c
index 97527807e..d40e024c8 100644
--- a/lib/curl_threads.c
+++ b/lib/curl_threads.c
@@ -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;
}