-
- Downloads
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.
Showing
- lib/asyn-ares.c 2 additions, 2 deletionslib/asyn-ares.c
- lib/asyn-thread.c 1 addition, 1 deletionlib/asyn-thread.c
- lib/base64.c 1 addition, 1 deletionlib/base64.c
- lib/bundles.c 2 additions, 2 deletionslib/bundles.c
- lib/cookie.c 1 addition, 1 deletionlib/cookie.c
- lib/curl_multibyte.c 4 additions, 2 deletionslib/curl_multibyte.c
- lib/curl_ntlm.c 2 additions, 2 deletionslib/curl_ntlm.c
- lib/curl_ntlm_core.c 2 additions, 3 deletionslib/curl_ntlm_core.c
- lib/curl_ntlm_msgs.c 1 addition, 1 deletionlib/curl_ntlm_msgs.c
- lib/curl_ntlm_wb.c 9 additions, 9 deletionslib/curl_ntlm_wb.c
- lib/curl_sasl.c 22 additions, 22 deletionslib/curl_sasl.c
- lib/curl_sasl_gssapi.c 10 additions, 10 deletionslib/curl_sasl_gssapi.c
- lib/curl_sasl_sspi.c 42 additions, 42 deletionslib/curl_sasl_sspi.c
- lib/curl_threads.c 2 additions, 2 deletionslib/curl_threads.c
- lib/formdata.c 12 additions, 12 deletionslib/formdata.c
- lib/ftp.c 5 additions, 5 deletionslib/ftp.c
- lib/gopher.c 3 additions, 3 deletionslib/gopher.c
- lib/http.c 3 additions, 3 deletionslib/http.c
- lib/http2.c 2 additions, 2 deletionslib/http2.c
- lib/http_negotiate.c 3 additions, 3 deletionslib/http_negotiate.c
Loading
Please register or sign in to comment