X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f783ed4680c6862a1b7543237e89d1221334bae0..1059053df344f90ee74d4fc9af05efce32022813:/src/smpi/smpi_bench.c diff --git a/src/smpi/smpi_bench.c b/src/smpi/smpi_bench.c index c9d2c8b4ab..80c1896159 100644 --- a/src/smpi/smpi_bench.c +++ b/src/smpi/smpi_bench.c @@ -4,6 +4,7 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ +#include // sqrt #include "private.h" #include "xbt/dict.h" #include "xbt/sysdep.h" @@ -35,15 +36,9 @@ typedef struct { void smpi_bench_destroy(void) { - if (allocs) { - xbt_dict_free(&allocs); - } - if (samples) { - xbt_dict_free(&samples); - } - if(calls) { - xbt_dict_free(&calls); - } + xbt_dict_free(&allocs); + xbt_dict_free(&samples); + xbt_dict_free(&calls); } static void smpi_execute_flops(double flops)