1
1

fcoll/dynamic: more coverity fixes

Okay coverity seems to get one stuck in a loop where
by fixing one set of resource allocation problems, it
starts finding more.

Signed-off-by: Howard Pritchard <howardp@lanl.gov>
Этот коммит содержится в:
Howard Pritchard 2015-03-09 15:01:05 -07:00
родитель 2d61a652c8
Коммит fba88360a8

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

@ -299,7 +299,8 @@ mca_fcoll_static_file_write_all (mca_io_ompio_file_t *fh,
sizeof(local_io_array));
if (NULL == global_iov_array){
opal_output (1, "OUT OF MEMORY\n");
return OMPI_ERR_OUT_OF_RESOURCE;
ret = OMPI_ERR_OUT_OF_RESOURCE;
goto exit;
}
}
@ -328,7 +329,8 @@ mca_fcoll_static_file_write_all (mca_io_ompio_file_t *fh,
sorted = (int *)malloc (global_iov_count * sizeof(int));
if (NULL == sorted) {
opal_output (1, "OUT OF MEMORY\n");
return OMPI_ERR_OUT_OF_RESOURCE;
ret = OMPI_ERR_OUT_OF_RESOURCE;
goto exit;
}
local_heap_sort (global_iov_array, global_iov_count, sorted);
}