Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
oops
authorAugustin Degomme <adegomme@users.noreply.github.com>
Fri, 19 Feb 2021 09:06:51 +0000 (10:06 +0100)
committerAugustin Degomme <adegomme@users.noreply.github.com>
Fri, 19 Feb 2021 09:06:51 +0000 (10:06 +0100)
src/smpi/internals/smpi_global.cpp

index ab98ec2..08eddf8 100644 (file)
@@ -647,9 +647,10 @@ void SMPI_finalize()
                   simgrid::smpi::F2C::lookup()->end(),
                   [n](const std::pair<unsigned int, simgrid::smpi::F2C*> &p) {
                       static int printed = 0;
-                      if(p.first >= simgrid::smpi::F2C::get_num_default_handles() && printed < n)
+                      if(p.first >= simgrid::smpi::F2C::get_num_default_handles() && printed < n){
                         XBT_WARN ("Leak %p of type %s", p.second, boost::core::demangle(typeid(*(p.second)).name()).c_str() );
                         printed++;
+                      }
                   });
       }
     }