From 08a3df0e063c35b6054d2352eae08ede6f4c6f17 Mon Sep 17 00:00:00 2001 From: mquinson Date: Thu, 29 Jan 2009 09:38:21 +0000 Subject: [PATCH] memleak founds by cppcheck git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6132 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- examples/gras/all2all/all2all.c | 1 + examples/gras/chrono/chrono.c | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/gras/all2all/all2all.c b/examples/gras/all2all/all2all.c index bafd2732bd..59c54b1bbc 100644 --- a/examples/gras/all2all/all2all.c +++ b/examples/gras/all2all/all2all.c @@ -136,6 +136,7 @@ int sender (int argc,char *argv[]) { } /* Free the allocated resources, and shut GRAS down */ + free(data); xbt_dynar_free(&peers); gras_exit(); diff --git a/examples/gras/chrono/chrono.c b/examples/gras/chrono/chrono.c index 222d7716fa..c7039816bf 100644 --- a/examples/gras/chrono/chrono.c +++ b/examples/gras/chrono/chrono.c @@ -76,7 +76,10 @@ int multiplier (int argc,char *argv[]) j++; GRAS_BENCH_ONCE_RUN_ONCE_END(); } - + free(A); + free(B); + free(C); + gras_exit(); return 0; } -- 2.20.1