Commit 781fd230 authored by Rusty Russell's avatar Rusty Russell

read_write_all: fix leak in tests.

parent 2d6e39ce
......@@ -71,5 +71,6 @@ int main(int argc, char *argv[])
ok(WIFEXITED(status) && WEXITSTATUS(status) == 0,
"WIFEXITED(status) = %u, WEXITSTATUS(status) = %u",
WIFEXITED(status), WEXITSTATUS(status));
free(buffer);
return exit_status();
}
......@@ -62,6 +62,7 @@ int main(int argc, char *argv[])
write_return = BUFSZ;
ok1(write_all(100, buffer, BUFSZ));
ok1(errno == 0);
free(buffer);
return exit_status();
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment