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:
Anthony Liguori 2010-12-01 09:29:31 -06:00 committed by Eric Blake
parent 981f7c8c9b
commit 560ed3eb78
1 changed files with 1 additions and 0 deletions

View File

@ -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);