mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-13 16:15:19 +00:00
virsh: Fix segfault of snapshot-list
'snaps' is used after free()'ed. (cherry picked from commit e0ad4669834d44763f7201ae97b997e9c64e8940)
This commit is contained in:
parent
6bae2c413d
commit
3d12463644
@ -866,7 +866,7 @@ vshSnapshotListCollect(vshControl *ctl, virDomainPtr dom,
|
||||
goto cleanup;
|
||||
}
|
||||
if (from) {
|
||||
snaps[snaplist->nsnaps++] = from;
|
||||
snaplist->snaps[snaplist->nsnaps++].snap = from;
|
||||
virDomainSnapshotRef(from);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user