Prevent double freeing of first segment manager.
Change-Id: I27d7cb4c4e142f29a0c3c3ff85dd1f581970abfc Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
This commit is contained in:
Dave Wallace
committed by
Florin Coras
parent
8d48722b09
commit
503766955c
@ -106,7 +106,8 @@ application_del (application_t * app)
|
|||||||
/*
|
/*
|
||||||
* Cleanup segment managers
|
* 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);
|
sm = segment_manager_get (app->connects_seg_manager);
|
||||||
segment_manager_del (sm);
|
segment_manager_del (sm);
|
||||||
|
Reference in New Issue
Block a user