Delete bogus freeing of uninitialized data

MFC after: 3 days
Reported by: cppcheck
Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
Enji Cooper 2015-12-08 04:51:21 +00:00
parent 3e22799178
commit 8abd0f3f26
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=291981

View File

@ -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);