[PATCH] Fix potential handle leak by ensuring dlclose is always called on debuginfod_so
Frank Ch. Eigler
fche@redhat.com
Fri Nov 1 19:02:38 GMT 2024
Hi -
> first report
> HANDLE_LEAK.EX The handle 'debuginfod_so' is created at debuginfod-client.c:104 by calling function 'dlopen' and lost at debuginfod-client.c:129.
> second report
> HANDLE_LEAK.EX The handle 'debuginfod_so' is created at debuginfod-client.c:107 by calling function 'dlopen' and lost at debuginfod-client.c:129.
> [...]
> This prevents potential handle leak reported by static analysis.
>
> Found by RASU JSC.
>
> Signed-off-by: Anton Moryakov <ant.v.moryakov@gmail.com>
NO. The shared library handle is held deliberately, so that
subsequent dlsym'd function calls can work. Please stop sending junk
patches.
- FChE
More information about the Elfutils-devel
mailing list