]> granicus.if.org Git - curl/commit
Bug #149: Deletion of unnecessary checks before calls of the function "free"
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 11 Mar 2015 16:41:01 +0000 (17:41 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 16 Mar 2015 11:13:56 +0000 (12:13 +0100)
commit29c655c0a6affc0359e499162e8308663eb4d04f
treeed6b1fc761dee6623ec1b312cc53dc3b661c1550
parent059b3a5770075315dbc843b9285a1cdec82c12d5
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>
40 files changed:
docs/examples/fopen.c
docs/examples/getinmemory.c
docs/examples/postinmemory.c
lib/asyn-ares.c
lib/asyn-thread.c
lib/base64.c
lib/cookie.c
lib/curl_addrinfo.c
lib/curl_ntlm_wb.c
lib/escape.c
lib/formdata.c
lib/ftp.c
lib/ftplistparser.c
lib/getinfo.c
lib/http.c
lib/http_proxy.c
lib/ldap.c
lib/multi.c
lib/nwlib.c
lib/pingpong.c
lib/security.c
lib/url.c
lib/vtls/nss.c
lib/vtls/vtls.c
lib/wildcard.c
lib/x509asn1.c
packages/OS400/ccsidcurl.c
packages/OS400/os400sys.c
tests/libtest/lib539.c
tests/libtest/lib568.c
tests/libtest/lib569.c
tests/libtest/lib570.c
tests/libtest/lib571.c
tests/libtest/lib572.c
tests/libtest/lib582.c
tests/server/getpart.c
tests/server/rtspd.c
tests/server/sws.c
tests/server/tftpd.c
tests/unit/unit1305.c