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