mirror of https://gitee.com/openkylin/libvirt.git
qemud: fix memory leak in io error events
The extra data isn't being free()'d for IO error events that have a reason. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
981f7c8c9b
commit
560ed3eb78
|
@ -472,6 +472,7 @@ void virDomainEventFree(virDomainEventPtr event)
|
|||
return;
|
||||
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue