mirror of https://gitee.com/openkylin/libvirt.git
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);
|
||||
}
|
||||
}
|
||||
if (dom)
|
||||
virDomainFree(dom);
|
||||
VIR_FREE(params);
|
||||
return rv;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue