m_pedit: Fix descriptor leak in get_pedit_kind()
Subsystems (2)
PATCH 1/1 m_pedit: Fix descriptor leak in get_pedit_kind()
Found by RASU JSC
Signed-off-by Maks Mishin <[email protected]>
--- tc/m_pedit.c | 3 +++ 1 file changed, 3 insertions(+)
tc/m_pedit.c +3 -0
@@ -95,6 +95,9 @@ static struct m_pedit_util *get_pedit_kind(const char *str)snprintf (buf,sizeof (buf),"p_pedit_%s" , str); p =dlsym (dlh, buf); +if (dlh !=NULL ) +dlclose (dlh); +if (p ==NULL ) goto noexist;
Signature · 1 line
2.30.2
Quoted 3 lines · On Thu, 8 Feb 2024 00:42:24 +0300 Maks Mishin <[email protected]> wrote:
Found by RASU JSC
Signed-off-by Maks Mishin <[email protected]>
NAK again will break caching of pBODY.
You get the idea, not going to look at more of these RASU patches.