]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/s390x/ccw-device: Fix memory leak in loadparm setter
authorKevin Wolf <kwolf@redhat.com>
Wed, 25 Jun 2025 08:27:51 +0000 (10:27 +0200)
committerThomas Huth <thuth@redhat.com>
Wed, 25 Jun 2025 22:42:28 +0000 (00:42 +0200)
commit78e3781541209b3dcd6f4bb66adf3a3e504b88a4
tree55530ceb71b6d49a53341804afd3b7f2214c16e7
parenta96011fefc2d9073569d51f481b656b65f552df7
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>
hw/s390x/ccw-device.c