]> xenbits.xensource.com Git - libvirt.git/commitdiff
remote_driver: Avoid double free in EventControl building
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 6 Oct 2011 13:33:40 +0000 (15:33 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 7 Oct 2011 07:56:32 +0000 (09:56 +0200)
Don't xdr_free event data as they are freed by our caller
virNetClientProgramDispatch.

src/remote/remote_driver.c

index 83f4f3ca88df4974cdfb70bc063c5fa32e98977f..2b2f41e6fefb632a22f923321e5eddf2b3951216 100644 (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);