Skip to content

Commit b8f214f

Browse files
author
rhc54
committed
Merge pull request open-mpi#681 from kawashima-fj/pr/v1.10/ob1-fin-memory-leak
pml/ob1: Fix a memory leak regarding pending FIN control messages.
2 parents 396ae3f + 7d86fdf commit b8f214f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ompi/mca/pml/ob1/pml_ob1.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* Copyright (c) 2011 Sandia National Laboratories. All rights reserved.
1717
* Copyright (c) 2011-2012 Los Alamos National Security, LLC. All rights
1818
* reserved.
19+
* Copyright (c) 2015 FUJITSU LIMITED. All rights reserved.
1920
* $COPYRIGHT$
2021
*
2122
* Additional copyrights may follow
@@ -614,6 +615,7 @@ void mca_pml_ob1_process_pending_packets(mca_bml_base_btl_t* bml_btl)
614615
pckt->order,
615616
pckt->hdr.hdr_fin.hdr_fail);
616617
if( OPAL_UNLIKELY(OMPI_ERR_OUT_OF_RESOURCE == rc) ) {
618+
MCA_PML_OB1_PCKT_PENDING_RETURN(pckt);
617619
return;
618620
}
619621
break;

0 commit comments

Comments
 (0)