From: mquinson Date: Fri, 11 Dec 2009 13:41:24 +0000 (+0000) Subject: Do not clear memory before freeing it (useless and fails on supernovae's ubuntu when... X-Git-Tag: SVN~835 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/1fd91c16cd08f9f18179241091be71423fff55ae Do not clear memory before freeing it (useless and fails on supernovae's ubuntu when size=0) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6891 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/xbt/dynar.c b/src/xbt/dynar.c index f48533938e..a6a159e5c6 100644 --- a/src/xbt/dynar.c +++ b/src/xbt/dynar.c @@ -104,7 +104,6 @@ static XBT_INLINE if (old_data) { memcpy(new_data, old_data, used_length); - _xbt_clear_mem(old_data, old_length); free(old_data); }