mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
cmdCheckpointList: Fix memory leak
Fixes: 3caa28dc50
Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
This commit is contained in:
parent
1294de209c
commit
8b8c91f487
@ -721,7 +721,6 @@ cmdCheckpointList(vshControl *ctl,
|
||||
virDomainCheckpointPtr checkpoint = NULL;
|
||||
long long creation_longlong;
|
||||
g_autoptr(GDateTime) then = NULL;
|
||||
g_autofree gchar *thenstr = NULL;
|
||||
bool tree = vshCommandOptBool(cmd, "tree");
|
||||
bool name = vshCommandOptBool(cmd, "name");
|
||||
bool from = vshCommandOptBool(cmd, "from");
|
||||
@ -804,6 +803,7 @@ cmdCheckpointList(vshControl *ctl,
|
||||
}
|
||||
|
||||
for (i = 0; i < checkpointlist->nchks; i++) {
|
||||
g_autofree gchar *thenstr = NULL;
|
||||
const char *chk_name;
|
||||
|
||||
/* free up memory from previous iterations of the loop */
|
||||
|
Loading…
Reference in New Issue
Block a user