topo base: ensure topo is != NULL before acting on it
This was CID 1041229
Этот коммит содержится в:
родитель
f381c5ea8b
Коммит
3758e3a242
@ -92,15 +92,15 @@ int mca_topo_base_dist_graph_create_adjacent(mca_topo_base_module_t* module,
|
||||
return OMPI_SUCCESS;
|
||||
|
||||
bail_out:
|
||||
if( NULL != topo->in ) free(topo->in);
|
||||
if( MPI_UNWEIGHTED != sourceweights ) {
|
||||
if( NULL != topo->inw ) free(topo->inw);
|
||||
}
|
||||
if( NULL != topo->out ) free(topo->out);
|
||||
if( MPI_UNWEIGHTED != destweights ) {
|
||||
if( NULL != topo->outw ) free(topo->outw);
|
||||
}
|
||||
if( NULL != topo ) {
|
||||
if (NULL != topo) {
|
||||
if( NULL != topo->in ) free(topo->in);
|
||||
if( MPI_UNWEIGHTED != sourceweights ) {
|
||||
if( NULL != topo->inw ) free(topo->inw);
|
||||
}
|
||||
if( NULL != topo->out ) free(topo->out);
|
||||
if( MPI_UNWEIGHTED != destweights ) {
|
||||
if( NULL != topo->outw ) free(topo->outw);
|
||||
}
|
||||
free(topo);
|
||||
}
|
||||
ompi_comm_free(newcomm);
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user