session: fix al cleanup if listen fails 78/43878/4
authorFlorin Coras <[email protected]>
Fri, 10 Oct 2025 21:54:24 +0000 (17:54 -0400)
committerDave Barach <[email protected]>
Sat, 11 Oct 2025 18:18:01 +0000 (18:18 +0000)
Type: fix

Change-Id: I3707a853e33ab611bca9c02ebbddad204cdb0425
Signed-off-by: Florin Coras <[email protected]>
Signed-off-by: Steven Luong <[email protected]>
src/vnet/session/application.c

index 63b6adf..71977bc 100644 (file)
@@ -223,7 +223,7 @@ app_listener_alloc_and_init (application_t * app,
          ls = listen_session_get_from_handle (lh);
          app_listener = app_listener_get (al_index);
          session_free (ls);
-         app_listener_free (app, app_listener);
+         app_listener_cleanup (app_listener);
          return rv;
        }
       ls = listen_session_get_from_handle (lh);