Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Do not clear memory before freeing it (useless and fails on supernovae's ubuntu when...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 11 Dec 2009 13:41:24 +0000 (13:41 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 11 Dec 2009 13:41:24 +0000 (13:41 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6891 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/xbt/dynar.c

index f485339..a6a159e 100644 (file)
@@ -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);
     }