[libvirt] [PATCH] qemud: fix memory leak in io error events

Eric Blake eblake at redhat.com
Wed Dec 8 16:01:03 UTC 2010


On 12/01/2010 08:31 AM, Daniel P. Berrange wrote:
> On Wed, Dec 01, 2010 at 09:29:31AM -0600, Anthony Liguori wrote:
>> The extra data isn't being free()'d for IO error events that have a reason.
>>
>> Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

>>      switch (event->eventID) {
>> +    case VIR_DOMAIN_EVENT_ID_IO_ERROR_REASON:
>>      case VIR_DOMAIN_EVENT_ID_IO_ERROR:
>>          VIR_FREE(event->data.ioError.srcPath);
>>          VIR_FREE(event->data.ioError.devAlias);
> 
> ACK

Pushed now.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20101208/88618a65/attachment-0001.sig>


More information about the libvir-list mailing list