Commit f008b9ce authored by Shane Snyder's avatar Shane Snyder

don't dereference a freed pointer...

parent 0f5c6de5
......@@ -1341,14 +1341,6 @@ static void ssg_group_destroy_internal(
/* free up SWIM state */
swim_finalize(g);
/* destroy group state */
ssg_group_view_destroy(&g->view);
g->descriptor->owner_status = SSG_OWNER_IS_UNASSOCIATED;
ssg_group_descriptor_free(g->descriptor);
ABT_rwlock_free(&g->lock);
free(g->name);
free(g);
#ifdef DEBUG
fflush(g->dbg_log);
......@@ -1357,6 +1349,14 @@ static void ssg_group_destroy_internal(
fclose(g->dbg_log);
#endif
/* destroy group state */
ssg_group_view_destroy(&g->view);
g->descriptor->owner_status = SSG_OWNER_IS_UNASSOCIATED;
ssg_group_descriptor_free(g->descriptor);
ABT_rwlock_free(&g->lock);
free(g->name);
free(g);
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment