Skip to content

Commit 701c4d1

Browse files
committed
topo/base: correctly free the topo object in mca_topo_base_dist_graph_create_adjacent
(cherry picked from commit open-mpi/ompi@80f0251)
1 parent 1960f2c commit 701c4d1

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)