Explorar o código

examples/tag_example/tag_restartable.c: free allocated memory

Nathalie Furmento %!s(int64=13) %!d(string=hai) anos
pai
achega
17deaad73e
Modificáronse 1 ficheiros con 6 adicións e 3 borrados
  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;
 }