Skip to content

Commit bed572c

Browse files
committed
mtl/portals4: Unlink the ME first, then free the CT and at the end free the PT
1 parent 0e433ea commit bed572c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

ompi/mca/mtl/portals4/mtl_portals4_flowctl.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,15 +219,16 @@ ompi_mtl_portals4_flowctl_init(void)
219219
int
220220
ompi_mtl_portals4_flowctl_fini(void)
221221
{
222-
PtlPTFree(ompi_mtl_portals4.ni_h, ompi_mtl_portals4.flowctl_idx);
223-
PtlCTFree(ompi_mtl_portals4.flowctl.trigger_ct_h);
224222
PtlMEUnlink(ompi_mtl_portals4.flowctl.trigger_me_h);
225-
PtlCTFree(ompi_mtl_portals4.flowctl.alert_ct_h);
223+
PtlCTFree(ompi_mtl_portals4.flowctl.trigger_ct_h);
226224
PtlMEUnlink(ompi_mtl_portals4.flowctl.alert_me_h);
227-
PtlCTFree(ompi_mtl_portals4.flowctl.fanin_ct_h);
225+
PtlCTFree(ompi_mtl_portals4.flowctl.alert_ct_h);
228226
PtlMEUnlink(ompi_mtl_portals4.flowctl.fanin_me_h);
229-
PtlCTFree(ompi_mtl_portals4.flowctl.fanout_ct_h);
227+
PtlCTFree(ompi_mtl_portals4.flowctl.fanin_ct_h);
230228
PtlMEUnlink(ompi_mtl_portals4.flowctl.fanout_me_h);
229+
PtlCTFree(ompi_mtl_portals4.flowctl.fanout_ct_h);
230+
231+
PtlPTFree(ompi_mtl_portals4.ni_h, ompi_mtl_portals4.flowctl_idx);
231232

232233
return OMPI_SUCCESS;
233234
}

0 commit comments

Comments
 (0)