We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c6c0af commit f6b3df2Copy full SHA for f6b3df2
ompi/mca/io/ompio/io_ompio.c
@@ -1452,20 +1452,21 @@ int ompi_io_ompio_distribute_file_view (mca_io_ompio_file_t *fh,
1452
}
1453
*/
1454
exit:
1455
- for (i=0 ; i<num_aggregators ; i++) {
1456
- if (NULL != broken[i]) {
1457
- free (broken[i]);
+
+ if (NULL != broken) {
+ for (i=0 ; i<num_aggregators ; i++) {
1458
+ if (NULL != broken[i]) {
1459
+ free (broken[i]);
1460
+ }
1461
1462
+ free (broken);
1463
1464
if (NULL != req) {
1465
free (req);
1466
1467
if (NULL != sendreq) {
1468
free (sendreq);
1469
- if (NULL != broken) {
- free (broken);
- }
1470
free (num_entries);
1471
free (broken_index);
1472
if (NULL != displs) {
0 commit comments