mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
tools: virshCheckpointListCollect: remove unused names
Introduced by: commit 689beaa47c51fb49fafa992dd468116b8f6b0782 and unused since. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
de49d5bad3
commit
bb93310aa8
@ -581,7 +581,6 @@ virshCheckpointListCollect(vshControl *ctl,
|
|||||||
bool tree)
|
bool tree)
|
||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
char **names = NULL;
|
|
||||||
int count = -1;
|
int count = -1;
|
||||||
virDomainCheckpointPtr *chks;
|
virDomainCheckpointPtr *chks;
|
||||||
virshCheckpointListPtr checkpointlist = vshMalloc(ctl,
|
virshCheckpointListPtr checkpointlist = vshMalloc(ctl,
|
||||||
@ -628,10 +627,6 @@ virshCheckpointListCollect(vshControl *ctl,
|
|||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
virshCheckpointListFree(checkpointlist);
|
virshCheckpointListFree(checkpointlist);
|
||||||
if (names && count > 0)
|
|
||||||
for (i = 0; i < count; i++)
|
|
||||||
VIR_FREE(names[i]);
|
|
||||||
VIR_FREE(names);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user