m_action: Fix descriptor leak in get_action_kind()
Subsystems (2)
PATCH 1/1 m_action: Fix descriptor leak in get_action_kind()
Found by RASU JSC
Signed-off-by Maks Mishin <[email protected]>
--- tc/m_action.c | 3 +++ 1 file changed, 3 insertions(+)
tc/m_action.c +3 -0
@@ -111,6 +111,9 @@ restart_s:snprintf (buf,sizeof (buf),"%s_action_util" , str); a =dlsym (dlh, buf); +if (dlh !=NULL ) +dlclose (dlh); +if (a ==NULL ) goto noexist;
Signature · 1 line
2.30.2
Quoted 12 lines · On Thu, 8 Feb 2024 00:16:32 +0300 Maks Mishin <[email protected]> wrote:
Found by RASU JSC
Signed-off-by Maks Mishin <[email protected]>--- tc/m_action.c | 3 +++ 1 file changed, 3 insertions(+)tc/m_action.c +0
-0
tc/m_action.c restart_s: · line 119
Quoted 9 lines
tc/m_action.c +3
-0@@ -111,6 +111,9 @@ restart_s:snprintf (buf,sizeof (buf),"%s_action_util" , str); a =dlsym (dlh, buf); +if (dlh !=NULL ) +dlclose (dlh); +if (a ==NULL ) goto noexist;
NAK again, this will break the caching