提交 81188667 编写于 作者: M Michal Privoznik

remote_driver: Avoid double free in EventControl building

Don't xdr_free event data as they are freed by our caller
virNetClientProgramDispatch.
上级 2d45ae5a
...@@ -3315,7 +3315,6 @@ remoteDomainBuildEventControlError(virNetClientProgramPtr prog ATTRIBUTE_UNUSED, ...@@ -3315,7 +3315,6 @@ remoteDomainBuildEventControlError(virNetClientProgramPtr prog ATTRIBUTE_UNUSED,
return; return;
event = virDomainEventControlErrorNewFromDom(dom); event = virDomainEventControlErrorNewFromDom(dom);
xdr_free ((xdrproc_t) &xdr_remote_domain_event_control_error_msg, (char *) &msg);
virDomainFree(dom); virDomainFree(dom);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册