瀏覽代碼

tests/microbenchs/tasks_overhead.c: free allocated memory

Nathalie Furmento 13 年之前
父節點
當前提交
30b6c8bdcf
共有 1 個文件被更改,包括 2 次插入1 次删除
  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;
 }