mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-31 05:51:53 -06:00
hw/s390x/ccw-device: Fix memory leak in loadparm setter
Commit bdf12f2a
fixed the setter for the "loadparm" machine property,
which gets a string from a visitor, passes it to s390_ipl_fmt_loadparm()
and then forgot to free it. It left another instance of the same problem
unfixed in the "loadparm" device property. Fix it.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20250625082751.24896-1-kwolf@redhat.com>
Reviewed-by: Eric Farman <farman@linux.ibm.com>
Reviewed-by: Halil Pasic <pasic@linux.ibm.com>
Tested-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
a96011fefc
commit
78e3781541
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ static void ccw_device_set_loadparm(Object *obj, Visitor *v,
|
||||||
Error **errp)
|
Error **errp)
|
||||||
{
|
{
|
||||||
CcwDevice *dev = CCW_DEVICE(obj);
|
CcwDevice *dev = CCW_DEVICE(obj);
|
||||||
char *val;
|
g_autofree char *val = NULL;
|
||||||
int index;
|
int index;
|
||||||
|
|
||||||
index = object_property_get_int(obj, "bootindex", NULL);
|
index = object_property_get_int(obj, "bootindex", NULL);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue