mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
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
1 changed files with 2 additions and 0 deletions
|
@ -43,6 +43,8 @@ Object *container_get(Object *root, const char *path)
|
|||
}
|
||||
}
|
||||
|
||||
g_strfreev(parts);
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue