Mtce: Fix memory leak in Swact failure handling

Story: 2002882
Task: 22845

Change-Id: I8be5d26a2702cc9c2788335a27c8d0ebcacc2b2c
Signed-off-by: Jack Ding <jack.ding@windriver.com>
This commit is contained in:
Eric MacDonald 2018-06-08 10:46:46 -04:00 committed by Jack Ding
parent 4d463fe074
commit 76fbef1d01
1 changed files with 5 additions and 0 deletions

View File

@ -3459,6 +3459,11 @@ int nodeLinkClass::swact_handler ( struct nodeLinkClass::node * node_ptr )
mtcTimer_start_msec ( node_ptr->mtcSwact_timer, mtcTimer_handler, SWACT_FAIL_MSEC_DELAY );
node_ptr->swactStage = MTC_SWACT__QUERY ;
}
/* avoid leaks in failure cases */
mtcHttpUtil_free_conn ( smgrEvent );
mtcHttpUtil_free_base ( smgrEvent );
break ;
}