1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-13 21:15:08 -05:00
curl/tests/libtest
Markus Elfring 29c655c0a6 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>
2015-03-16 12:13:56 +01:00
..
.gitignore libtest: gitignore more binary files 2013-05-08 14:35:45 +02:00
chkhostname.c build: fix circular header inclusion with other packages 2013-01-09 00:49:50 +01:00
CMakeLists.txt cmake: add ENABLE_THREADED_RESOLVER, rename ARES 2014-11-10 09:09:25 +01:00
first.c unit1600: unit test for Curl_ntlm_core_mk_nt_hash 2015-02-03 21:03:11 +01:00
lib500.c test585: Fixed NULL pointer dereference in fopen 2014-05-01 11:00:30 +02:00
lib501.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib502.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib503.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib504.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib505.c tests: Use CURLOPT_READDATA instead of the obsolete CURLOPT_INFILE 2014-06-18 01:17:23 +02:00
lib506.c libtest: fixed linker errors on msvc 2015-03-03 14:33:11 +01:00
lib507.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib508.c tests: Use CURLOPT_READDATA instead of the obsolete CURLOPT_INFILE 2014-06-18 01:17:23 +02:00
lib509.c test509: libcurl initialization with memory callbacks and actual usage 2013-03-13 21:50:40 +01:00
lib510.c tests: Use CURLOPT_READDATA instead of the obsolete CURLOPT_INFILE 2014-06-18 01:17:23 +02:00
lib511.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib512.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib513.c tests: Use CURLOPT_READDATA instead of the obsolete CURLOPT_INFILE 2014-06-18 01:17:23 +02:00
lib514.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib515.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib516.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib517.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib518.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib519.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib520.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib521.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib523.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib524.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib525.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib526.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib530.c lib530: make it less timing sensible 2015-02-24 11:50:19 +01:00
lib533.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib536.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib537.c always-multi: always use non-blocking internals 2013-01-17 19:40:35 +01:00
lib539.c Bug #149: Deletion of unnecessary checks before calls of the function "free" 2015-03-16 12:13:56 +01:00
lib540.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib541.c tests: Use CURLOPT_READDATA instead of the obsolete CURLOPT_INFILE 2014-06-18 01:17:23 +02:00
lib542.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib543.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib544.c lib544.c: use duphandle for test 545 2014-11-05 08:05:14 +01:00
lib547.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib549.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib552.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib553.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib554.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib555.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib556.c test556: Fixed compilation warning 2014-12-28 20:32:46 +00:00
lib557.c libtest: fixed linker errors on msvc 2015-03-03 14:33:11 +01:00
lib558.c tests: add #96 #558 and #1330 2013-03-15 19:59:51 +01:00
lib560.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib562.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib564.c libtest: fix data type of some *_setopt() 'long' arguments 2013-07-22 21:40:45 +02:00
lib566.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib567.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib568.c Bug #149: Deletion of unnecessary checks before calls of the function "free" 2015-03-16 12:13:56 +01:00
lib569.c Bug #149: Deletion of unnecessary checks before calls of the function "free" 2015-03-16 12:13:56 +01:00
lib570.c Bug #149: Deletion of unnecessary checks before calls of the function "free" 2015-03-16 12:13:56 +01:00
lib571.c Bug #149: Deletion of unnecessary checks before calls of the function "free" 2015-03-16 12:13:56 +01:00
lib572.c Bug #149: Deletion of unnecessary checks before calls of the function "free" 2015-03-16 12:13:56 +01:00
lib573.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib574.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib575.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib576.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib578.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib579.c tests: Use CURLOPT_READDATA instead of the obsolete CURLOPT_INFILE 2014-06-18 01:17:23 +02:00
lib582.c Bug #149: Deletion of unnecessary checks before calls of the function "free" 2015-03-16 12:13:56 +01:00
lib583.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib586.c libtest: fixed linker errors on msvc 2015-03-03 14:33:11 +01:00
lib590.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib591.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib597.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib598.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib599.c Ensure progress.size_dl/progress.size_ul are always >= 0 2014-09-07 23:23:12 +02:00
lib1500.c tests: Use standard libtest return codes when relevant 2014-05-05 15:30:05 +02:00
lib1501.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib1502.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
lib1506.c lib1506: make sure the transfers are not within the same ms 2014-05-09 16:50:42 +02:00
lib1507.c tests: make a few lib15?? tests pass the OOM torture tests 2014-01-29 00:40:33 +01:00
lib1508.c Fix NULL pointer reference when closing an unused multi handle. 2013-02-10 22:57:58 +01:00
lib1509.c test1509: Fixed compilation warning 2014-12-28 21:47:20 +00:00
lib1510.c tests: make a few lib15?? tests pass the OOM torture tests 2014-01-29 00:40:33 +01:00
lib1511.c test 1511: fix enumerated type mixed with another type 2013-07-11 17:01:02 +02:00
lib1512.c lib1512.c: Fixed compilation warning 2013-09-02 20:39:53 +01:00
lib1513.c test1513: Don't return an uninitialized variable on init failure 2014-05-05 15:29:23 +02:00
lib1514.c test1514: Got rid of a non-const initializer C99ism 2014-01-22 01:49:55 +01:00
lib1515.c libtest: fixed linker errors on msvc 2015-03-03 14:33:11 +01:00
lib1520.c test1520: Fixed initial teething problems 2014-12-28 13:04:15 +00:00
lib1525.c CURLOPT_HEADEROPT: added 2014-04-04 17:03:43 +02:00
lib1526.c tests: Fixed torture test for tests 1526 & 1527 2014-04-22 22:43:57 +02:00
lib1527.c tests: Fixed torture test for tests 1526 & 1527 2014-04-22 22:43:57 +02:00
lib1528.c PROXYHEADER: send these headers in "normal" proxy requests too 2014-04-04 17:03:43 +02:00
lib1529.c tests: make sure CRLFs can't be used in URLs passed to proxy 2015-01-07 22:55:56 +01:00
lib1900.c lib1900.c: Fixed cppcheck error 2014-12-31 12:45:36 +00:00
libauthretry.c tests: make the authorization retry tests pass the torture tests 2014-01-30 23:18:20 +01:00
libntlmconnect.c libtest: fix data type of some *_setopt() 'long' arguments 2013-07-22 21:40:45 +02:00
Makefile.am curl.h: stricter CURL_EXTERN linkage decorations logic 2013-03-12 00:27:47 +01:00
Makefile.inc tests: make sure CRLFs can't be used in URLs passed to proxy 2015-01-07 22:55:56 +01:00
notexists.pl tests 1334 to 1363 revisited. 2012-06-05 20:20:40 +02:00
sethostname.c build: fix circular header inclusion with other packages 2013-01-09 00:49:50 +01:00
sethostname.h tests: fix libhostname visibility 2014-11-10 09:06:48 +01:00
test75.pl replaced tabs with spaces 2010-02-16 13:32:45 +00:00
test307.pl replaced tabs with spaces 2010-02-16 13:32:45 +00:00
test610.pl replaced tabs with spaces 2010-02-16 13:32:45 +00:00
test613.pl replaced tabs with spaces 2010-02-16 13:32:45 +00:00
test1013.pl test1013.pl: GSS-Negotiate doesn't exist as a feature anymore 2014-07-24 23:46:11 +02:00
test1022.pl Fixed test 1023 when using daily snapshots 2011-04-21 14:47:35 -07:00
test.h libtest: fixed linker errors on msvc 2015-03-03 14:33:11 +01:00
testtrace.c libtest: fixed linker errors on msvc 2015-03-03 14:33:11 +01:00
testtrace.h tests: testtrace.[ch] provides debug callback for libtest usage 2012-01-17 21:32:05 +01:00
testutil.c build: fix circular header inclusion with other packages 2013-01-09 00:49:50 +01:00
testutil.h build: fix circular header inclusion with other packages 2013-01-09 00:49:50 +01:00