mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-26 18:41:17 +00:00
Fix mistaken free of domain event object after queueing (David Lively)
This commit is contained in:
parent
6313259ada
commit
829b6420d8
@ -1,3 +1,8 @@
|
||||
Thu Dec 18 12:11:58 GMT 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||
|
||||
* src/remote_internal.c: Don't free event after queueing it
|
||||
unless error occurred (David Lively)
|
||||
|
||||
Thu Dec 18 12:07:58 GMT 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||
|
||||
* src/test.c: Fix error return value
|
||||
|
@ -5535,11 +5535,11 @@ remoteDomainQueueEvent(virConnectPtr conn, XDR *xdr)
|
||||
return;
|
||||
|
||||
if (virDomainEventQueuePush(priv->domainEvents,
|
||||
event) < 0)
|
||||
event) < 0) {
|
||||
DEBUG0("Error adding event to queue");
|
||||
|
||||
virDomainEventFree(event);
|
||||
}
|
||||
}
|
||||
|
||||
/** remoteDomainEventFired:
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user