Skip to content

Commit 60a3eb1

Browse files
committed
comm_spawn_multiple_f: fix coverity issue
Fix CID 1327338: Resource leak (RESOURCE_LEAK): Confirmed that the c_info array was being leaked. Free the array before returning. Signed-off-by: Nathan Hjelm <[email protected]>
1 parent 178c97b commit 60a3eb1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ompi/mpi/fortran/mpif-h/comm_spawn_multiple_f.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
* Copyright (c) 2010-2012 Cisco Systems, Inc. All rights reserved.
1313
* Copyright (c) 2015 Research Organization for Information Science
1414
* and Technology (RIST). All rights reserved.
15+
* Copyright (c) 2016 Los Alamos National Security, LLC. All rights
16+
* reserved.
1517
* $COPYRIGHT$
1618
*
1719
* Additional copyrights may follow
@@ -150,4 +152,5 @@ void ompi_comm_spawn_multiple_f(MPI_Fint *count, char *array_commands,
150152
}
151153
}
152154
free(c_array_argv);
155+
free(c_info);
153156
}

0 commit comments

Comments
 (0)