提交 05456cc9 编写于 作者: M Maxim Nestratov

vz: fix handle leak in prlsdkHandleVmStateEvent

Every successful call of PrlEvent_GetParamByName allocates a handle,
which has to be freed.
Signed-off-by: NMaxim Nestratov <mnestratov@virtuozzo.com>
上级 c2130c0d
......@@ -2147,6 +2147,7 @@ prlsdkHandleVmStateEvent(vzDriverPtr driver,
prlsdkSendEvent(driver, dom, lvEventType, lvEventTypeDetails);
cleanup:
PrlHandle_Free(eventParam);
virObjectUnlock(dom);
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册