mirror of
https://github.com/libvirt/libvirt.git
synced 2026-09-03 20:53:04 -05: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:
committed by
Eric Blake
parent
ecd8725c1a
commit
2fdd441a4a
@@ -997,6 +997,8 @@ cleanup:
|
||||
VIR_FREE(ret->params.params_val);
|
||||
}
|
||||
}
|
||||
if (dom)
|
||||
virDomainFree(dom);
|
||||
VIR_FREE(params);
|
||||
return rv;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user