mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-19 02:29:31 -05:00
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.
This commit is contained in:
parent
8a944d0e46
commit
f3b231714f
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue