From 66fee3bd18fc68a69ad4ecefdcdf9981d087ffb7 Mon Sep 17 00:00:00 2001 From: Howard Pritchard Date: Wed, 11 Mar 2015 09:11:49 -0600 Subject: [PATCH] fcoll/static: minor fix for coverity Signed-off-by: Howard Pritchard --- ompi/mca/fcoll/static/fcoll_static_file_read_all.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ompi/mca/fcoll/static/fcoll_static_file_read_all.c b/ompi/mca/fcoll/static/fcoll_static_file_read_all.c index 7d60d3b8bae..fb6c8ede44a 100644 --- a/ompi/mca/fcoll/static/fcoll_static_file_read_all.c +++ b/ompi/mca/fcoll/static/fcoll_static_file_read_all.c @@ -340,7 +340,8 @@ mca_fcoll_static_file_read_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; } read_local_heap_sort (global_iov_array, global_iov_count, sorted); }