Browse Source

examples/tag_example/tag_restartable.c: free allocated memory

Nathalie Furmento 12 years ago
parent
commit
17deaad73e
1 changed files with 6 additions and 3 deletions
  1. 6 3
      examples/tag_example/tag_restartable.c

+ 6 - 3
examples/tag_example/tag_restartable.c

@@ -159,9 +159,12 @@ int main(int argc __attribute__((unused)) , char **argv __attribute__((unused)))
 
 	starpu_shutdown();
 	FPRINTF(stderr, "TEST DONE ...\n");
-	return EXIT_SUCCESS;
 
 enodev:
-	starpu_shutdown();
-	return 77;
+	for (i = 0; i < Nrolls; i++)
+	{
+		free(tasks[i]);
+	}
+
+	return ret;
 }