1
1
openmpi/ompi/mca/fcoll/two_phase
Nathan Hjelm 09df7aa205 fcoll/two_phase: fix coverity errors
Fixes CIDs 72300, 72344, 1196764-1196768, 72300: Resource leaks

Mulitple allocated arrays are going out of scope at the end of
mca_fcoll_two_phase_file_write_all. Free these arrays. Also removed
the extraneous NULL checks since free (NULL) is safe in C.

Change returns to goto exit where the allocated resources are freed.

Fixes CIDs 72285-72292, 72297, 72298: Resource leaks

Change all appropriate return statements to goto exit to ensure that
all resources are freed. Also removed the NULL checks since free
(NULL) is safe in C.

Fixes CIDs 72295, 72296: Resource leaks

Moved free of requests and recv_types to after exit label. This will
ensure these are freed on error.

Also added a loop and statement to free send_buf which is going out of
scope at the end of the function.

Fixes CIDs 72336-72240, 735197, 735198: Resource leaks

Moved the exit label before to before the resources are released and
changed all appropriate return statements to goto exit. Also removed
extraneous NULL checks because free (NULL) is safe in C.

Fixes CIDs 72341, 72343, 1196805-1196809: Resource leaks

Free all resources after exit label and change return statements to
goto exit to ensure all resources are freed on error.

Fixes CID 1269973: Unused value

Check return code of ompi_request_wait_all. If it fails jump to the
exit.

Fixes CID 714119: Dereference before NULL check

Wrong value checked in conditional.

Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
2015-10-01 14:38:09 -06:00
..
fcoll_two_phase_component.c Purge whitespace from the repo 2015-06-23 20:59:57 -07:00
fcoll_two_phase_file_read_all.c fcoll/two_phase: fix coverity errors 2015-10-01 14:38:09 -06:00
fcoll_two_phase_file_write_all.c fcoll/two_phase: fix coverity errors 2015-10-01 14:38:09 -06:00
fcoll_two_phase_module.c Purge whitespace from the repo 2015-06-23 20:59:57 -07:00
fcoll_two_phase_support_fns.c fcoll/two_phase: fix coverity errors 2015-10-01 14:38:09 -06:00
fcoll_two_phase.h io: do not cast way the const modifier when this is not necessary 2015-09-09 09:18:58 +09:00
Makefile.am Purge whitespace from the repo 2015-06-23 20:59:57 -07:00
owner.txt add owner files to opa/ompi/orte mca directories 2015-02-22 15:10:23 -07:00