]> git.ipfire.org Git - thirdparty/qemu.git/commit
virtio-mem-pci: Fix memory leak when creating MEMORY_DEVICE_SIZE_CHANGE event
authorDavid Hildenbrand <david@redhat.com>
Wed, 29 Sep 2021 16:24:43 +0000 (18:24 +0200)
committerMichael Roth <michael.roth@amd.com>
Tue, 14 Dec 2021 14:56:49 +0000 (08:56 -0600)
commitf0dee5a40d27ad8ce2d180141bb5953fce44a146
tree797fbd9a7ce69cc1d56427893f1fa53288cd3715
parent7637373b23f32fb88e100df455addc4107a054dc
virtio-mem-pci: Fix memory leak when creating MEMORY_DEVICE_SIZE_CHANGE event

Apparently, we don't have to duplicate the string.

Fixes: 722a3c783ef4 ("virtio-pci: Send qapi events when the virtio-mem size changes")
Cc: qemu-stable@nongnu.org
Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20210929162445.64060-2-david@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 75b98cb9f6456ccf194211beffcbf93b0a995fa4)
Signed-off-by: Michael Roth <michael.roth@amd.com>
hw/virtio/virtio-mem-pci.c