projects
/
platform
/
upstream
/
libxkbcommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e009f6
)
Fix tiny memory leak in dump test
author
Daniel Stone
<daniel@fooishbar.org>
Mon, 4 Jun 2012 15:16:20 +0000
(16:16 +0100)
committer
Daniel Stone
<daniel@fooishbar.org>
Mon, 4 Jun 2012 15:16:20 +0000
(16:16 +0100)
We forgot to free the path we'd allocated with asprintf.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
test/dump.c
patch
|
blob
|
history
diff --git
a/test/dump.c
b/test/dump.c
index
bd6d1ab
..
16d1768
100644
(file)
--- a/
test/dump.c
+++ b/
test/dump.c
@@
-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);