Procházet zdrojové kódy

tests/microbenchs/tasks_overhead.c: free allocated memory

Nathalie Furmento před 13 roky
rodič
revize
30b6c8bdcf
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      tests/microbenchs/tasks_overhead.c

+ 2 - 1
tests/microbenchs/tasks_overhead.c

@@ -210,7 +210,7 @@ int main(int argc, char **argv)
         }
 
 	starpu_shutdown();
-
+	free(tasks);
 	return EXIT_SUCCESS;
 
 enodev:
@@ -218,5 +218,6 @@ enodev:
 	/* yes, we do not perform the computation but we did detect that no one
  	 * could perform the kernel, so this is not an error from StarPU */
 	starpu_shutdown();
+	free(tasks);
 	return STARPU_TEST_SKIPPED;
 }