From: Ján Tomko Date: Wed, 23 Sep 2020 16:17:44 +0000 (+0200) Subject: tools: virshCheckpointListCollect: remove unused names X-Git-Tag: v6.8.0-rc1~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb93310aa8f67de4e5bb54e6ca020cf4e536b1bc;p=thirdparty%2Flibvirt.git tools: virshCheckpointListCollect: remove unused names Introduced by: commit 689beaa47c51fb49fafa992dd468116b8f6b0782 and unused since. Signed-off-by: Ján Tomko Reviewed-by: Martin Kletzander --- diff --git a/tools/virsh-checkpoint.c b/tools/virsh-checkpoint.c index 33e70515ad..f3c4fe90ba 100644 --- a/tools/virsh-checkpoint.c +++ b/tools/virsh-checkpoint.c @@ -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; }