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
Daniel Stone 2012-06-04 16:16:20 +01:00
parent 2e009f69c7
commit 77c909dee2
1 changed files with 1 additions and 0 deletions

View File

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