From b253d4e887cc9f0c8e73167c53c8b3386b0eb01d Mon Sep 17 00:00:00 2001 From: Edgar Gabriel Date: Thu, 21 Jan 2016 08:30:19 -0600 Subject: [PATCH] fix CID 1349739, CID 1349738, CID 1349736 and (probably) CID 1349740 (not entirely sure about the last one, since I don't understand why block[i] is a problem but max_len[i] allocated and treated exactly the same way 1 line later is not). --- .../fcoll_dynamic_gen2_file_write_all.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/ompi/mca/fcoll/dynamic_gen2/fcoll_dynamic_gen2_file_write_all.c b/ompi/mca/fcoll/dynamic_gen2/fcoll_dynamic_gen2_file_write_all.c index fadb031ca5..8ffff78320 100644 --- a/ompi/mca/fcoll/dynamic_gen2/fcoll_dynamic_gen2_file_write_all.c +++ b/ompi/mca/fcoll/dynamic_gen2/fcoll_dynamic_gen2_file_write_all.c @@ -559,8 +559,10 @@ exit : free(broken_total_lengths); free(broken_iov_counts); free(broken_decoded_iovs); // decoded_iov arrays[i] were freed as aggr_data[i]->decoded_iov; - for (i=0; i