Re: [PATCH 1/6] network: Free inhibitor in networkStateCleanup()

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

 



On Thu, Mar 13, 2025 at 14:44:33 +0100, Michal Privoznik wrote:
> The shutdown inhibitor is created in networkStateInitialize() but
> corresponding call to virInhibitorFree() is missing in
> networkStateCleanup() leading to a memleak:

good that it's a "singleton"

> 
> 116 (72 direct, 44 indirect) bytes in 1 blocks are definitely lost in loss record 1,769 of 1,998
>    at 0x484CEF3: calloc (vg_replace_malloc.c:1675)
>    by 0x4F0E7A9: g_malloc0 (in /usr/lib64/libglib-2.0.so.0.8000.5)
>    by 0x4993B9B: virInhibitorNew (virinhibitor.c:152)
>    by 0x5279394: networkStateInitialize (bridge_driver.c:654)
>    by 0x4CC74DC: virStateInitialize (libvirt.c:665)
>    by 0x15B719: daemonRunStateInit (remote_daemon.c:613)
>    by 0x49F2B44: virThreadHelper (virthread.c:256)
>    by 0x5356662: start_thread (in /usr/lib64/libc.so.6)
>    by 0x53D7DA3: clone (in /usr/lib64/libc.so.6)
> 
> Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
> ---
>  src/network/bridge_driver.c | 2 ++
>  1 file changed, 2 insertions(+)

Reviewed-by: Peter Krempa <pkrempa@xxxxxxxxxx>



[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