-
- Downloads
Bug #149: Deletion of unnecessary checks before calls of the function "free"
The function "free" is documented in the way that no action shall occur for a passed null pointer. It is therefore not needed that a function caller repeats a corresponding check. http://stackoverflow.com/questions/18775608/free-a-null-pointer-anyway-or-check-first This issue was fixed by using the software Coccinelle 1.0.0-rc24. Signed-off-by:Markus Elfring <elfring@users.sourceforge.net>
Showing
- docs/examples/fopen.c 3 additions, 9 deletionsdocs/examples/fopen.c
- docs/examples/getinmemory.c 1 addition, 2 deletionsdocs/examples/getinmemory.c
- docs/examples/postinmemory.c 1 addition, 2 deletionsdocs/examples/postinmemory.c
- lib/asyn-ares.c 1 addition, 2 deletionslib/asyn-ares.c
- lib/asyn-thread.c 2 additions, 5 deletionslib/asyn-thread.c
- lib/base64.c 1 addition, 2 deletionslib/base64.c
- lib/cookie.c 17 additions, 36 deletionslib/cookie.c
- lib/curl_addrinfo.c 2 additions, 7 deletionslib/curl_addrinfo.c
- lib/curl_ntlm_wb.c 2 additions, 4 deletionslib/curl_ntlm_wb.c
- lib/escape.c 1 addition, 2 deletionslib/escape.c
- lib/formdata.c 5 additions, 7 deletionslib/formdata.c
- lib/ftp.c 9 additions, 19 deletionslib/ftp.c
- lib/ftplistparser.c 1 addition, 2 deletionslib/ftplistparser.c
- lib/getinfo.c 1 addition, 2 deletionslib/getinfo.c
- lib/http.c 8 additions, 15 deletionslib/http.c
- lib/http_proxy.c 4 additions, 9 deletionslib/http_proxy.c
- lib/ldap.c 2 additions, 5 deletionslib/ldap.c
- lib/multi.c 4 additions, 8 deletionslib/multi.c
- lib/nwlib.c 2 additions, 6 deletionslib/nwlib.c
- lib/pingpong.c 2 additions, 4 deletionslib/pingpong.c
Loading
Please register or sign in to comment