From 8abd0f3f26ce92a3a9d9f8d59c639f828a3bfa3e Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Tue, 8 Dec 2015 04:51:21 +0000 Subject: [PATCH] Delete bogus freeing of uninitialized data MFC after: 3 days Reported by: cppcheck Sponsored by: EMC / Isilon Storage Division --- lib/libc/tests/stdio/getdelim_test.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/libc/tests/stdio/getdelim_test.c b/lib/libc/tests/stdio/getdelim_test.c index b7596b36a2d4..37737aefac51 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);