diff options
author | Stefan Weil <sw@weilnetz.de> | 2012-04-28 02:20:19 +0000 |
---|---|---|
committer | Stefan Weil <sw@weilnetz.de> | 2012-05-03 07:04:48 +0200 |
commit | f156f2385ff72e05e35edea6bea270033bf2756a (patch) | |
tree | 7b6b76e0d83193e5a561eabfc8eb9395d15395ab | |
parent | 9cf1f002d7761a1938066379d54a67e8f8b48cc2 (diff) |
qom: Fix memory leak in function container_get
Valgrind reported this memory leak which occured very often.
Test scenario:
qemu-system-i386 (no arguments), only BIOS started, terminate with
monitor command (quit).
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Andreas Färber <afaerber@suse.de>
-rw-r--r-- | qom/container.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qom/container.c b/qom/container.c index c9940ab2e1..4ca8b5cba3 100644 --- a/qom/container.c +++ b/qom/container.c @@ -43,6 +43,8 @@ Object *container_get(Object *root, const char *path) } } + g_strfreev(parts); + return obj; } |