From f3b231714f9c200abf8b0d99afca53f13cd3dc87 Mon Sep 17 00:00:00 2001 From: Aurelien DARRAGON Date: Thu, 10 Apr 2025 16:57:58 +0200 Subject: [PATCH] MINOR: flt_spoe: deinit spoe agent proxy upon agent release Even though spoe agent proxy is statically allocated, it uses the proxy API and is initialized like a regular proxy, thus specific cleanup is required upon release. This is not tagged as a bug because as of now this would only cause some minor memory leak upon deinit. We check the presence of proxy->id to know if it was initialized since we cannot rely on a pointer for that. --- src/flt_spoe.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/flt_spoe.c b/src/flt_spoe.c index 8e4ea48f6..cec31a855 100644 --- a/src/flt_spoe.c +++ b/src/flt_spoe.c @@ -321,6 +321,8 @@ static void spoe_release_agent(struct spoe_agent *agent) } free(agent->events); free(agent->engine_id); + if (agent->fe.id) + deinit_proxy(&agent->fe); free(agent); }