|
1 | 1 | /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
|
2 | 2 | /*
|
3 | 3 | * Copyright (c) 2014-2016 Intel, Inc. All rights reserved.
|
4 |
| - * Copyright (c) 2014-2016 Research Organization for Information Science |
| 4 | + * Copyright (c) 2014-2017 Research Organization for Information Science |
5 | 5 | * and Technology (RIST). All rights reserved.
|
6 | 6 | * Copyright (c) 2014-2015 Mellanox Technologies, Inc.
|
7 | 7 | * All rights reserved.
|
@@ -578,6 +578,9 @@ int pmix2x_publish(opal_list_t *info)
|
578 | 578 | }
|
579 | 579 |
|
580 | 580 | ret = PMIx_Publish(pinfo, sz);
|
| 581 | + if (0 < sz) { |
| 582 | + PMIX_INFO_FREE(pinfo, sz); |
| 583 | + } |
581 | 584 |
|
582 | 585 | return pmix2x_convert_rc(ret);
|
583 | 586 | }
|
@@ -614,6 +617,9 @@ int pmix2x_publishnb(opal_list_t *info,
|
614 | 617 | }
|
615 | 618 |
|
616 | 619 | ret = PMIx_Publish_nb(op->info, op->sz, opcbfunc, op);
|
| 620 | + if (0 < op->sz) { |
| 621 | + PMIX_INFO_FREE(op->info, op->sz); |
| 622 | + } |
617 | 623 |
|
618 | 624 | return pmix2x_convert_rc(ret);
|
619 | 625 | }
|
@@ -924,6 +930,9 @@ int pmix2x_spawn(opal_list_t *job_info, opal_list_t *apps, opal_jobid_t *jobid)
|
924 | 930 | job->jobid = *jobid;
|
925 | 931 | opal_list_append(&mca_pmix_ext2x_component.jobids, &job->super);
|
926 | 932 | }
|
| 933 | + if (0 < ninfo) { |
| 934 | + PMIX_INFO_FREE(pinfo, ninfo); |
| 935 | + } |
927 | 936 | PMIX_APP_FREE(papps, napps);
|
928 | 937 |
|
929 | 938 | return pmix2x_convert_rc(ret);
|
|
0 commit comments