m_ematch: Fix descriptor leak in get_ematch_kind()
Subsystems (2)
PATCH 1/1 m_ematch: Fix descriptor leak in get_ematch_kind()
Found by RASU JSC
Signed-off-by Maks Mishin <[email protected]>
--- tc/m_ematch.c | 3 +++ 1 file changed, 3 insertions(+)
tc/m_ematch.c +3 -0
@@ -149,6 +149,9 @@ static struct ematch_util *get_ematch_kind(char *kind)snprintf (buf,sizeof (buf),"%s_ematch_util" , kind); e =dlsym (dlh, buf); +if (dlh !=NULL ) +dlclose (dlh); +if (e ==NULL )return NULL ;
Signature · 1 line
2.30.2