Re: [PATCH] tests: Don't leak cpu defs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
> ---
>  tests/testutilsqemu.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 

Reviewed-by: Ján Tomko <jtomko@xxxxxxxxxx>

Jano




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux