mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
daemon: avoid memory leak
Introduced in commit efa7fc9f
.
* daemon/remote.c: fix memory leak in remoteDispatchDomainBlockStatsFlags
Signed-off-by: Alex Jia <ajia@redhat.com>
This commit is contained in:
parent
ecd8725c1a
commit
2fdd441a4a
@ -997,6 +997,8 @@ cleanup:
|
|||||||
VIR_FREE(ret->params.params_val);
|
VIR_FREE(ret->params.params_val);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (dom)
|
||||||
|
virDomainFree(dom);
|
||||||
VIR_FREE(params);
|
VIR_FREE(params);
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user