Skip to content

Commit 5360035

Browse files
committed
topo/treematch: fix CID 1416327
Ensure to free things in the right order so that we don't access memory after it is freed. Signed-off-by: Jeff Squyres <[email protected]>
1 parent 08ceb66 commit 5360035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mca/topo/treematch/treematch/tm_tree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ void free_non_constraint_tree(tm_tree_t *tree)
132132
{
133133
int d = tree->dumb;
134134

135-
free_list_child(tree);
136135
free_tab_child(tree);
136+
free_list_child(tree);
137137
if(!d)
138138
FREE(tree);
139139
}

0 commit comments

Comments
 (0)