Skip to content

Commit edc5541

Browse files
authored
Fix leak in CommImplMPI::GroupByShm (#4665)
1 parent 9bb8eeb commit edc5541

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/adios2/helper/adiosCommMPI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ std::unique_ptr<CommImpl> CommImplMPI::GroupByShm(const std::string &hint) const
252252
MPI_Info info;
253253
MPI_Info_create(&info);
254254
CheckMPIReturn(MPI_Comm_split_type(m_MPIComm, MPI_COMM_TYPE_SHARED, 0, info, &nodeComm), hint);
255-
return std::unique_ptr<CommImpl>(new CommImplMPI(nodeComm));
256255
MPI_Info_free(&info);
256+
return std::unique_ptr<CommImpl>(new CommImplMPI(nodeComm));
257257
}
258258

259259
int CommImplMPI::Rank() const

0 commit comments

Comments
 (0)