Skip to content

Commit 302a515

Browse files
committed
Merge pull request open-mpi#789 from ggouaillardet/topic/v2.x/topo_base_dist_graph_create_adjacent
topo/base: correctly free the topo object in mca_topo_base_dist_graph…
2 parents 2844c5f + 701c4d1 commit 302a515

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mca/topo/base/topo_base_dist_graph_create_adjacent.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ int mca_topo_base_dist_graph_create_adjacent(mca_topo_base_module_t* module,
101101
if( MPI_UNWEIGHTED != destweights ) {
102102
if( NULL != topo->outw ) free(topo->outw);
103103
}
104-
free(topo);
104+
OBJ_RELEASE(topo);
105105
}
106106
ompi_comm_free(newcomm);
107107
return err;

0 commit comments

Comments
 (0)