Delete bogus freeing of uninitialized data
MFC after: 3 days Reported by: cppcheck Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
3e22799178
commit
8abd0f3f26
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=291981
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user