]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tools: virshCheckpointListCollect: remove unused names
authorJán Tomko <jtomko@redhat.com>
Wed, 23 Sep 2020 16:17:44 +0000 (18:17 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 24 Sep 2020 09:19:05 +0000 (11:19 +0200)
Introduced by:
commit 689beaa47c51fb49fafa992dd468116b8f6b0782
and unused since.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
tools/virsh-checkpoint.c

index 33e70515ad3c738e50aee873a7e9a8609f8d6afe..f3c4fe90baf03efe5ac365efcf774b35484a79bc 100644 (file)
@@ -581,7 +581,6 @@ virshCheckpointListCollect(vshControl *ctl,
                            bool tree)
 {
     size_t i;
-    char **names = NULL;
     int count = -1;
     virDomainCheckpointPtr *chks;
     virshCheckpointListPtr checkpointlist = vshMalloc(ctl,
@@ -628,10 +627,6 @@ virshCheckpointListCollect(vshControl *ctl,
 
  cleanup:
     virshCheckpointListFree(checkpointlist);
-    if (names && count > 0)
-        for (i = 0; i < count; i++)
-            VIR_FREE(names[i]);
-    VIR_FREE(names);
     return ret;
 }