[PATCH] tests: Don't leak cpu defs
Jano Tomko
jtomko at redhat.com
Thu Aug 5 12:48:39 UTC 2021
On a %A in %Y, Michal Privoznik wrote:
> There are cpu definitions that are allocated in
> qemuTestDriverInit() but are missing corresponding
> virCPUDefFree() call in qemuTestDriverFree(). It's safe to call
> the free function because the definitions contain a refcounter
> and thus even if they were still in use the refcounter would be
> just decreased.
>
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
> tests/testutilsqemu.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
Reviewed-by: Ján Tomko <jtomko at redhat.com>
Jano
More information about the libvir-list
mailing list