[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240207211632.15660-1-maks.mishinFZ@gmail.com>
Date: Thu, 8 Feb 2024 00:16: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_action: Fix descriptor leak in get_action_kind()
Found by RASU JSC
Signed-off-by: Maks Mishin <maks.mishinFZ@...il.com>
---
tc/m_action.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tc/m_action.c b/tc/m_action.c
index 16474c56..7d18f7fa 100644
--- a/tc/m_action.c
+++ b/tc/m_action.c
@@ -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;
--
2.30.2
Powered by blists - more mailing lists