aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/session
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2017-07-20 16:36:01 -0400
committerFlorin Coras <florin.coras@gmail.com>2017-07-20 21:45:00 +0000
commit503766955cbadbeb0962ee602dca0b2159973b0a (patch)
tree6cb663a329b8c07fe852cda7ff8853a590399ed5 /src/vnet/session
parent8d48722b0932e7857f93c4e06ba9b2dff8bd5cad (diff)
Prevent double freeing of first segment manager.
Change-Id: I27d7cb4c4e142f29a0c3c3ff85dd1f581970abfc Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'src/vnet/session')
-rw-r--r--src/vnet/session/application.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/session/application.c b/src/vnet/session/application.c
index 8a953719f81..076c66f1fff 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);