Re: [PATCH] debuginfod-client.c: add dlclose call to prevent resource leak

2024-11-01 Thread Frank Ch. Eigler
Hi - On Fri, Nov 01, 2024 at 07:37:03PM +0300, Anton Moryakov wrote: > Previously, the handle debuginfod_so created by dlopen was not closed > in all cases, leading to a potential resource leak. This commit adds an > additional dlclose call to ensure that the handle is always properly > release

[PATCH] debuginfod-client.c: add dlclose call to prevent resource leak

2024-11-01 Thread Anton Moryakov
Previously, the handle debuginfod_so created by dlopen was not closed in all cases, leading to a potential resource leak. This commit adds an additional dlclose call to ensure that the handle is always properly released, whether the symbols are successfully loaded or not. Found by RASU JSC. Si