remote_driver: Avoid double free in EventControl building

Don't xdr_free event data as they are freed by our caller
virNetClientProgramDispatch.
This commit is contained in:
Michal Privoznik 2011-10-06 15:33:40 +02:00
parent 2d45ae5a01
commit 811886672d

View File

@ -3315,7 +3315,6 @@ remoteDomainBuildEventControlError(virNetClientProgramPtr prog ATTRIBUTE_UNUSED,
return;
event = virDomainEventControlErrorNewFromDom(dom);
xdr_free ((xdrproc_t) &xdr_remote_domain_event_control_error_msg, (char *) &msg);
virDomainFree(dom);