Re: [PATCH] qemu: Fix memory leak in processGuestPanicEvent

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

 



On 01/26/2018 09:43 PM, John Ferlan wrote:
> After processing the processEvent->data for a qemuProcessEventHandler
> callout, it's expected that the called processEvent->eventType helper
> will perform the proper free on the data field. In this case it's
> a qemuMonitorEventPanicInfoPtr.
> 
> Signed-off-by: John Ferlan <jferlan@xxxxxxxxxx>
> ---
> 
>  Noticed this while working through the DumpComplete patch series.
>  One has to follow the bouncing ball, but will note that when the
>  processEvent->data is passed to other cases, it ends up getting
>  VIR_FREE()'d at the end of various functions, so this should too
>  since it's at the end of the line.
> 
>  src/qemu/qemu_driver.c | 1 +
>  1 file changed, 1 insertion(+)

ACK

Michal

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux