09df7aa205
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> |
||
---|---|---|
.. | ||
fcoll_two_phase_component.c | ||
fcoll_two_phase_file_read_all.c | ||
fcoll_two_phase_file_write_all.c | ||
fcoll_two_phase_module.c | ||
fcoll_two_phase_support_fns.c | ||
fcoll_two_phase.h | ||
Makefile.am | ||
owner.txt |