Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
some corrections while chasing leaks
authorsuter <frederic.suter@cc.in2p3.fr>
Wed, 25 Sep 2013 12:18:46 +0000 (14:18 +0200)
committersuter <frederic.suter@cc.in2p3.fr>
Wed, 25 Sep 2013 12:56:56 +0000 (14:56 +0200)
src/simdag/sd_global.c
src/simdag/sd_workstation.c

index 8329d4f..400d0c8 100644 (file)
@@ -221,8 +221,8 @@ void SD_create_environment(const char *platform_file)
   }
 
   xbt_lib_foreach(storage_lib, cursor, name, surf_storage) {
-  if(surf_storage[SURF_LINK_LEVEL])
-    __SD_storage_create(surf_link[SURF_STORAGE_LEVEL], NULL);
+  if(surf_storage[SURF_STORAGE_LEVEL])
+    __SD_storage_create(surf_storage[SURF_STORAGE_LEVEL], NULL);
   }
 
 
index fdc07be..4a491d7 100644 (file)
@@ -57,7 +57,10 @@ SD_storage_t __SD_storage_create(void *surf_storage, void *data)
  */
 void __SD_storage_destroy(void *storage)
 {
-  xbt_free(storage);
+  SD_storage_priv_t s;
+
+  s = (SD_storage_priv_t) storage;
+  xbt_free(s);
 }
 
 /**