Ver código fonte

socl/src: remove free which are freeing memory which may be used at a later stage

Nathalie Furmento 13 anos atrás
pai
commit
8f8e0da3ba
2 arquivos alterados com 3 adições e 1 exclusões
  1. 1 1
      socl/src/gc.c
  2. 2 0
      socl/src/task.c

+ 1 - 1
socl/src/gc.c

@@ -61,7 +61,7 @@ static void * gc_thread_routine(void *UNUSED(arg)) {
 
       /* Release entity */
       entity next = r->next;
-      free(r);
+//      free(r);
 
       r = next;
     }

+ 2 - 0
socl/src/task.c

@@ -120,10 +120,12 @@ static void cputask_task(__attribute__((unused)) void *descr[], void *args) {
 
   arg->callback(arg->arg);
 
+/*
   if (arg->free_arg)
     free(arg->arg);
 
   free(arg);
+*/
 }
 
 static struct starpu_codelet cputask_codelet = {