1
1

Fix Coverity defect 676: possible NULL dereference in an error

condition.

This commit was SVN r15956.
Этот коммит содержится в:
Jeff Squyres 2007-08-25 12:17:02 +00:00
родитель a6723b34ea
Коммит b69c7688a0

Просмотреть файл

@ -150,7 +150,7 @@ int MPI_Intercomm_merge(MPI_Comm intercomm, int high,
free ( r_proc_list );
}
if ( MPI_SUCCESS != rc ) {
if ( MPI_COMM_NULL != newcomp ) {
if ( MPI_COMM_NULL != newcomp && NULL != newcomp ) {
OBJ_RELEASE(newcomp);
}
*newcomm = MPI_COMM_NULL;