Fix tiny memory leak in dump test
We forgot to free the path we'd allocated with asprintf. Signed-off-by: Daniel Stone <daniel@fooishbar.org>master
parent
2e009f69c7
commit
77c909dee2
|
@ -58,6 +58,7 @@ int main(int argc, char *argv[])
|
|||
assert(fd >= 0);
|
||||
assert(stat(path, &stat_buf) == 0);
|
||||
assert(stat_buf.st_size > 0);
|
||||
free(path);
|
||||
|
||||
expected = mmap(NULL, stat_buf.st_size, PROT_READ, MAP_SHARED, fd, 0);
|
||||
assert(expected != MAP_FAILED);
|
||||
|
|
Loading…
Reference in New Issue