mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-11 04:15:49 +00:00
virsh: Fix resource leak while listing inactive domains with titles
Commit fad5cd2108
introduces a new flag
that allows to show domain's title with domains. This commit introduced
resource leak while listing inactive domains with titles.
This commit is contained in:
parent
046b0a6972
commit
35d31954d2
@ -1012,10 +1012,10 @@ cmdList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
|
||||
"-",
|
||||
names[i],
|
||||
state == -2 ? _("saved") : _(vshDomainStateToString(state)));
|
||||
}
|
||||
|
||||
virDomainFree(dom);
|
||||
VIR_FREE(names[i]);
|
||||
}
|
||||
}
|
||||
|
||||
ret = true;
|
||||
|
Loading…
Reference in New Issue
Block a user