Skip to content

Commit d2e3b03

Browse files
authored
Merge pull request #6217 from jsquyres/pr/fix-CID-1441826
odls_base_default_fns.c: remove errant free
2 parents bd0d2b8 + f96c042 commit d2e3b03

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

orte/mca/odls/base/odls_base_default_fns.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Copyright (c) 2011 Oak Ridge National Labs. All rights reserved.
1414
* Copyright (c) 2011-2013 Los Alamos National Security, LLC.
1515
* All rights reserved.
16-
* Copyright (c) 2011-2017 Cisco Systems, Inc. All rights reserved
16+
* Copyright (c) 2011-2018 Cisco Systems, Inc. All rights reserved
1717
* Copyright (c) 2013-2018 Intel, Inc. All rights reserved.
1818
* Copyright (c) 2014-2018 Research Organization for Information Science
1919
* and Technology (RIST). All rights reserved.
@@ -645,21 +645,20 @@ int orte_odls_base_default_construct_child_list(opal_buffer_t *buffer,
645645
goto REPORT_ERROR;
646646
}
647647
}
648+
free(ppn);
649+
648650
/* compute the ranks and add the proc objects
649651
* to the jdata->procs array */
650652
if (ORTE_SUCCESS != (rc = orte_rmaps_base_compute_vpids(jdata))) {
651653
ORTE_ERROR_LOG(rc);
652-
free(ppn);
653654
goto REPORT_ERROR;
654655
}
655656
/* and finally, compute the local and node ranks */
656657
if (ORTE_SUCCESS != (rc = orte_rmaps_base_compute_local_ranks(jdata))) {
657658
ORTE_ERROR_LOG(rc);
658-
free(ppn);
659659
goto REPORT_ERROR;
660660
}
661661
}
662-
free(ppn);
663662

664663
/* unpack the buffer containing any application setup info - there
665664
* might not be any, so it isn't an error if we don't find things */

0 commit comments

Comments
 (0)