[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20240207214232.19204-1-maks.mishinFZ@gmail.com>
Date: Thu, 8 Feb 2024 00:42:32 +0300
From: Maks Mishin <maks.mishinfz@...il.com>
To: Stephen Hemminger <stephen@...workplumber.org>
Cc: Maks Mishin <maks.mishinFZ@...il.com>,
netdev@...r.kernel.org
Subject: [PATCH] m_ematch: Fix descriptor leak in get_ematch_kind()
Found by RASU JSC
Signed-off-by: Maks Mishin <maks.mishinFZ@...il.com>
---
tc/m_ematch.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tc/m_ematch.c b/tc/m_ematch.c
index fefc7860..eef6b05d 100644
--- a/tc/m_ematch.c
+++ b/tc/m_ematch.c
@@ -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;
--
2.30.2
Powered by blists - more mailing lists