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:
8f2c959
)
makekeys: free strings before exiting
author
Ran Benita
<ran234@gmail.com>
Sun, 1 Apr 2012 13:57:31 +0000
(16:57 +0300)
committer
Daniel Stone
<daniel@fooishbar.org>
Mon, 2 Apr 2012 12:09:36 +0000
(13:09 +0100)
Just to make valgrind happy.
Signed-off-by: Ran Benita <ran234@gmail.com>
makekeys/makekeys.c
patch
|
blob
|
history
diff --git
a/makekeys/makekeys.c
b/makekeys/makekeys.c
index
4d7767f
..
35bd66d
100644
(file)
--- a/
makekeys/makekeys.c
+++ b/
makekeys/makekeys.c
@@
-321,5
+321,8
@@
skip2: ;
printf("};\n");
printf("\n#endif /* KS_TABLES_H */\n");
+ for (i = 0; i < ksnum; i++)
+ free(info[i].name);
+
exit(0);
}