Skip to content

Commit 1e56e63

Browse files
authored
Merge pull request open-mpi#176 from rhc54/topic/cov
Fix coverity warning
2 parents a9d4af9 + 6e726eb commit 1e56e63

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

orte/mca/odls/base/odls_base_default_fns.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -734,21 +734,19 @@ int orte_odls_base_default_construct_child_list(opal_buffer_t *buffer,
734734
goto REPORT_ERROR;
735735
}
736736
}
737+
free(ppn);
737738
/* compute the ranks and add the proc objects
738739
* to the jdata->procs array */
739740
if (ORTE_SUCCESS != (rc = orte_rmaps_base_compute_vpids(jdata))) {
740741
ORTE_ERROR_LOG(rc);
741-
free(ppn);
742742
goto REPORT_ERROR;
743743
}
744744
/* and finally, compute the local and node ranks */
745745
if (ORTE_SUCCESS != (rc = orte_rmaps_base_compute_local_ranks(jdata))) {
746746
ORTE_ERROR_LOG(rc);
747-
free(ppn);
748747
goto REPORT_ERROR;
749748
}
750749
}
751-
free(ppn);
752750

753751
#if OPAL_PMIX_VERSION >= 3
754752
/* unpack the buffer containing any application setup info - there

0 commit comments

Comments
 (0)