summaryrefslogtreecommitdiffstats
path: root/lib/libc/tests
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-12-08 04:51:21 +0000
committerngie <ngie@FreeBSD.org>2015-12-08 04:51:21 +0000
commit40d1d9a557a396062662a3e81145d21e928aacf0 (patch)
treea5540cf5bd78da486fd010d57eda0feb44cfeb76 /lib/libc/tests
parentc5071051a324685cec9a25074d560d3c7d1f6f85 (diff)
downloadFreeBSD-src-40d1d9a557a396062662a3e81145d21e928aacf0.zip
FreeBSD-src-40d1d9a557a396062662a3e81145d21e928aacf0.tar.gz
Delete bogus freeing of uninitialized data
MFC after: 3 days Reported by: cppcheck Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'lib/libc/tests')
-rw-r--r--lib/libc/tests/stdio/getdelim_test.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/libc/tests/stdio/getdelim_test.c b/lib/libc/tests/stdio/getdelim_test.c
index b7596b3..37737ae 100644
--- a/lib/libc/tests/stdio/getdelim_test.c
+++ b/lib/libc/tests/stdio/getdelim_test.c
@@ -207,7 +207,6 @@ ATF_TC_BODY(empty_NULL_buffer, tc)
/* Make sure NULL *linep and zero *linecapp are handled. */
fp = mkfilebuf();
- free(line);
line = NULL;
linecap = 42;
ATF_REQUIRE(getline(&line, &linecap, fp) == sizeof(apothegm) - 1);
OpenPOWER on IntegriCloud