]> granicus.if.org Git - curl/commit
free: instead of Curl_safefree()
authorDaniel Stenberg <daniel@haxx.se>
Mon, 16 Mar 2015 14:01:15 +0000 (15:01 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 16 Mar 2015 14:01:15 +0000 (15:01 +0100)
commit0f4a03cbb6fdb84d05cb6aafe50444edad4f4119
tree89472eece4173a97ac3b80aba5e35ed70cdd7845
parent9e661601feba03d1158ac466a457d5a6ce7f3f11
free: instead of Curl_safefree()

Since we just started make use of free(NULL) in order to simplify code,
this change takes it a step further and:

- converts lots of Curl_safefree() calls to good old free()
- makes Curl_safefree() not check the pointer before free()

The (new) rule of thumb is: if you really want a function call that
frees a pointer and then assigns it to NULL, then use Curl_safefree().
But we will prefer just using free() from now on.
35 files changed:
lib/asyn-ares.c
lib/asyn-thread.c
lib/base64.c
lib/bundles.c
lib/cookie.c
lib/curl_multibyte.c
lib/curl_ntlm.c
lib/curl_ntlm_core.c
lib/curl_ntlm_msgs.c
lib/curl_ntlm_wb.c
lib/curl_sasl.c
lib/curl_sasl_gssapi.c
lib/curl_sasl_sspi.c
lib/curl_threads.c
lib/formdata.c
lib/ftp.c
lib/gopher.c
lib/http.c
lib/http2.c
lib/http_negotiate.c
lib/http_negotiate_sspi.c
lib/http_proxy.c
lib/imap.c
lib/ldap.c
lib/memdebug.h
lib/multi.c
lib/netrc.c
lib/pipeline.c
lib/smb.c
lib/smtp.c
lib/socks_sspi.c
lib/ssh.c
lib/tftp.c
lib/url.c
tests/data/test96