summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorXiaoming Jiang <jiangxiaoming@outlook.com>2023-04-19 08:41:29 +0000
committerFlorin Coras <florin.coras@gmail.com>2023-04-19 15:38:03 +0000
commit1f7042506cdb0f3e9e1cbfe4a05c6e9e6b4d24f3 (patch)
treeff4924298040cb13f49d8d4af88962b6aa5fc4cd /src/vnet
parent9339af358febb0bff744c7bf1e5b3ca2c416a3e9 (diff)
session: fix app_listener memory leak if session listen failed
Type: fix Signed-off-by: Xiaoming Jiang <jiangxiaoming@outlook.com> Change-Id: Iaa3ad87d56163396476bcaaa34e52948b9032f4e
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/session/application.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/session/application.c b/src/vnet/session/application.c
index ad4d447c543..cfa97190bf9 100644
--- a/src/vnet/session/application.c
+++ b/src/vnet/session/application.c
@@ -189,6 +189,7 @@ app_listener_alloc_and_init (application_t * app,
{
ls = session_get_from_handle (lh);
session_free (ls);
+ app_listener_free (app, app_listener);
return rv;
}
@@ -223,6 +224,7 @@ app_listener_alloc_and_init (application_t * app,
{
ls = listen_session_get_from_handle (lh);
session_free (ls);
+ app_listener_free (app, app_listener);
return rv;
}
ls = listen_session_get_from_handle (lh);