Every successful call of PrlEvent_GetParamByName allocates a handle,
which has to be freed.
Signed-off-by: Maxim Nestratov <mnestratov(a)virtuozzo.com>
---
src/vz/vz_sdk.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/vz/vz_sdk.c b/src/vz/vz_sdk.c
index 727b572..ec954dd 100644
--- a/src/vz/vz_sdk.c
+++ b/src/vz/vz_sdk.c
@@ -2114,6 +2114,7 @@ prlsdkHandleVmStateEvent(vzDriverPtr driver,
prlsdkSendEvent(driver, dom, lvEventType, lvEventTypeDetails);
cleanup:
+ PrlHandle_Free(eventParam);
virObjectUnlock(dom);
return;
}
--
2.4.11