mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-21 10:50:24 +03:00
virsh: Fix resource leak while listing inactive domains with titles
Commit fad5cd210899dfde4afe36712754dc921c3f3051 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…
x
Reference in New Issue
Block a user