mirror of https://gitee.com/openkylin/qemu.git
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>
This commit is contained in:
parent
9cf1f002d7
commit
f156f2385f
|
@ -43,6 +43,8 @@ Object *container_get(Object *root, const char *path)
|
|||
}
|
||||
}
|
||||
|
||||
g_strfreev(parts);
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue