From 503766955cbadbeb0962ee602dca0b2159973b0a Mon Sep 17 00:00:00 2001 From: Dave Wallace Date: Thu, 20 Jul 2017 16:36:01 -0400 Subject: Prevent double freeing of first segment manager. Change-Id: I27d7cb4c4e142f29a0c3c3ff85dd1f581970abfc Signed-off-by: Dave Wallace --- src/vnet/session/application.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vnet/session/application.c b/src/vnet/session/application.c index 8a953719..076c66f1 100644 --- a/src/vnet/session/application.c +++ b/src/vnet/session/application.c @@ -106,7 +106,8 @@ application_del (application_t * app) /* * Cleanup segment managers */ - if (app->connects_seg_manager != (u32) ~ 0) + if ((app->connects_seg_manager != (u32) ~ 0) && + (app->connects_seg_manager != app->first_segment_manager)) { sm = segment_manager_get (app->connects_seg_manager); segment_manager_del (sm); -- cgit 1.2.3-korg