Ver código fonte

tests/microbenchs/tasks_overhead.c: free allocated memory

Nathalie Furmento 13 anos atrás
pai
commit
30b6c8bdcf
1 arquivos alterados com 2 adições e 1 exclusões
  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();
 	starpu_shutdown();
-
+	free(tasks);
 	return EXIT_SUCCESS;
 	return EXIT_SUCCESS;
 
 
 enodev:
 enodev:
@@ -218,5 +218,6 @@ enodev:
 	/* yes, we do not perform the computation but we did detect that no one
 	/* 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 */
  	 * could perform the kernel, so this is not an error from StarPU */
 	starpu_shutdown();
 	starpu_shutdown();
+	free(tasks);
 	return STARPU_TEST_SKIPPED;
 	return STARPU_TEST_SKIPPED;
 }
 }