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>
Этот коммит содержится в:
родитель
2d61a652c8
Коммит
fba88360a8
@ -299,7 +299,8 @@ mca_fcoll_static_file_write_all (mca_io_ompio_file_t *fh,
|
|||||||
sizeof(local_io_array));
|
sizeof(local_io_array));
|
||||||
if (NULL == global_iov_array){
|
if (NULL == global_iov_array){
|
||||||
opal_output (1, "OUT OF MEMORY\n");
|
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));
|
sorted = (int *)malloc (global_iov_count * sizeof(int));
|
||||||
if (NULL == sorted) {
|
if (NULL == sorted) {
|
||||||
opal_output (1, "OUT OF MEMORY\n");
|
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);
|
local_heap_sort (global_iov_array, global_iov_count, sorted);
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user