提交 c76dc0ea 编写于 作者: D Daniel P. Berrangé

admin: fix memory leak of typed parameters getting client info

In the error code path, the temporary parameters are not freed.
Reviewed-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
上级 2f163204
......@@ -310,6 +310,8 @@ adminClientGetInfo(virNetServerClientPtr client,
ret = 0;
cleanup:
if (tmpparams)
virTypedParamsFree(tmpparams, *nparams);
virObjectUnref(identity);
VIR_FREE(sock_addr);
return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册