mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 15:52:55 +00:00
Fix virDomainSnapshotObjFree memory leak.
We were freeing the virDomainSnapshotDefPtr, but not the virDomainSnapshotObjPtr in virDomainSnapshotObjFree. Signed-off-by: Chris Lalancette <clalance@redhat.com>
This commit is contained in:
parent
e129a63775
commit
5993321dc5
@ -6747,6 +6747,7 @@ static void virDomainSnapshotObjFree(virDomainSnapshotObjPtr snapshot)
|
||||
VIR_DEBUG("obj=%p", snapshot);
|
||||
|
||||
virDomainSnapshotDefFree(snapshot->def);
|
||||
VIR_FREE(snapshot);
|
||||
}
|
||||
|
||||
int virDomainSnapshotObjUnref(virDomainSnapshotObjPtr snapshot)
|
||||
|
Loading…
x
Reference in New Issue
Block a user