projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b749d07
)
device_tree: Fix potential memory leak
author
Stefan Weil
<sw@weilnetz.de>
Mon, 17 Oct 2011 20:12:09 +0000
(22:12 +0200)
committer
Stefan Hajnoczi
<stefanha@linux.vnet.ibm.com>
Wed, 26 Oct 2011 12:36:34 +0000
(13:36 +0100)
cppcheck error report:
device_tree.c:156: error: Memory leak: dupname
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
device_tree.c
patch
|
blob
|
history
diff --git
a/device_tree.c
b/device_tree.c
index dc69232f10da4be242a97f13d1d0e6422dc12c6e..86a694c95503357a6ee15cbe427922cd31ec319a 100644
(file)
--- a/
device_tree.c
+++ b/
device_tree.c
@@
-153,6
+153,7
@@
int qemu_devtree_add_subnode(void *fdt, const char *name)
int retval;
if (!basename) {
+ g_free(dupname);
return -1;
}