]> 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)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 3 Jul 2025 12:43:18 +0000 (15:43 +0300)
commitb8f48f40334cb54df36e796b1e825a9061e0fbce
tree7eee0a2d7957be720122c7736266cc0aeaa15950
parentfb9bad329cadba1f09642bb20a5ed2ce709b9dc3
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>
(cherry picked from commit 78e3781541209b3dcd6f4bb66adf3a3e504b88a4)
(Mjt: bdf12f2a is 8efe1592 in stable-10.0 branch)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/s390x/ccw-device.c