From: mquinson Date: Thu, 29 Jan 2009 09:38:21 +0000 (+0000) Subject: memleak founds by cppcheck X-Git-Tag: v3.3~63 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/08a3df0e063c35b6054d2352eae08ede6f4c6f17?hp=a3a9277b2d833bad63f6ca22dcf9cc563fbe0f68 memleak founds by cppcheck git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6132 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- 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; }