qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 0/2] virtio-rng: Fix memory leaks in virtio_rng_devi


From: John Snow
Subject: [Qemu-devel] [PATCH 0/2] virtio-rng: Fix memory leaks in virtio_rng_device_realize
Date: Tue, 29 Jul 2014 19:28:56 -0400

My previous commit, 713e8a10, did not address the fact that
the error checking pathways do not attempt to call
virtio_cleanup and thus can leak memory in hotplug scenarios.

This patchset shuffles around the error checking so it does not
need to perform said cleanup, and changes the error functions
from error_set to error_setg.

John Snow (2):
  virtio-rng: Move error-checking forward to prevent memory leak
  virtio-rng: replace error_set calls with error_setg

 hw/virtio/virtio-rng.c | 25 ++++++++++++-------------
 1 file changed, 12 insertions(+), 13 deletions(-)

-- 
1.9.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]