Re: [PATCH] rpc: Fix memory leak of fds

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

 



On 3/2/22 10:22, Peng Liang wrote:
> In virSystemdActivationClaimFDs, the memory of ent->fds has been stolen
> and stored in fds, but fds is never freed, which causes a memory leak.
> Fix it by declaring fds as g_autofree.
> 
> Reported-by: Jie Tang <tangjie18@xxxxxxxxxx>
> Signed-off-by: Peng Liang <liangpeng10@xxxxxxxxxx>
> ---
>  src/rpc/virnetserver.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Michal Privoznik <mprivozn@xxxxxxxxxx>

and pushed.

Michal




[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