From: Augustin Degomme Date: Fri, 25 Feb 2022 08:30:56 +0000 (+0000) Subject: leak-- X-Git-Tag: v3.31~312 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/cad6c60193432c9ec59a758b4932a3bd67382d00 leak-- --- diff --git a/src/smpi/colls/scatter/scatter-ompi.cpp b/src/smpi/colls/scatter/scatter-ompi.cpp index 3ccf3430d1..67984b0c9f 100644 --- a/src/smpi/colls/scatter/scatter-ompi.cpp +++ b/src/smpi/colls/scatter/scatter-ompi.cpp @@ -310,7 +310,9 @@ int scatter__ompi_linear_nb(const void *sbuf, int scount, if (MPI_SUCCESS != err) { line = __LINE__; goto err_hndl; } - + if (NULL != reqs) { + delete[] reqs; + } return MPI_SUCCESS; err_hndl: