mirror of
https://github.com/zevenet/zproxy.git
synced 2025-10-26 11:19:19 +00:00
state: fix session memory leak on service unification
Signed-off-by: Nicolás A. Ortega Froysa <nicolas.ortega@zevenet.com>
This commit is contained in:
parent
3f328c70e7
commit
6eaf067178
@ -300,6 +300,7 @@ static void zproxy_state_cfg_proxy_update(const struct zproxy_proxy_cfg *proxy,
|
||||
if (!found) {
|
||||
auto iter = service_state;
|
||||
service_state++;
|
||||
zproxy_sessions_free(iter->second->sessions);
|
||||
http_state->services.erase(iter);
|
||||
continue;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user