提交 e43fb4ee 编写于 作者: N Nikolay Shirokovskiy 提交者: Maxim Nestratov

vz: fix leaks in prlsdkCreate* functions

Signed-off-by: NNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
上级 1e697ac9
......@@ -3910,6 +3910,9 @@ prlsdkCreateVm(vzDriverPtr driver, virDomainDefPtr def)
cleanup:
PrlHandle_Free(sdkdom);
PrlHandle_Free(srvconf);
PrlHandle_Free(result);
return ret;
}
......@@ -4024,6 +4027,7 @@ prlsdkCreateCt(virConnectPtr conn, virDomainDefPtr def)
cleanup:
PrlHandle_Free(sdkdom);
PrlHandle_Free(result);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册