virtio-mem-pci: Fix memory leak when creating MEMORY_DEVICE_SIZE_CHANGE event
commit75b98cb9f6456ccf194211beffcbf93b0a995fa4
authorDavid Hildenbrand <david@redhat.com>
Wed, 29 Sep 2021 16:24:43 +0000 (29 18:24 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 2 Oct 2021 06:43:21 +0000 (2 08:43 +0200)
tree9d244648d90759bcdc461b385f25b2b4bd524dd1
parent3830df5f83b9b52d9496763ce1a50afb9231c998
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>
hw/virtio/virtio-mem-pci.c