diff options
author | Stefan Weil <sw@weilnetz.de> | 2011-10-17 22:12:09 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-10-26 13:36:34 +0100 |
commit | bff39b6360eefc65b9f8f438cf03dab21afba5bf (patch) | |
tree | 1d0b93acf77b2c35975a498ace799f3e370aefde /device_tree.c | |
parent | d300854b1ccd036e0d7c58d789f4ab8d372263e6 (diff) |
device_tree: Fix potential memory leak
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>
Diffstat (limited to 'device_tree.c')
-rw-r--r-- | device_tree.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/device_tree.c b/device_tree.c index dc69232f10..86a694c955 100644 --- 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; } |