aboutsummaryrefslogtreecommitdiff
path: root/qom/container.c
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-04-28 02:20:19 +0000
committerStefan Weil <sw@weilnetz.de>2012-05-03 07:04:48 +0200
commitf156f2385ff72e05e35edea6bea270033bf2756a (patch)
tree7b6b76e0d83193e5a561eabfc8eb9395d15395ab /qom/container.c
parent9cf1f002d7761a1938066379d54a67e8f8b48cc2 (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>
Diffstat (limited to 'qom/container.c')
-rw-r--r--qom/container.c2
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;
}