Browse Source

Fix memleak

Samuel Thibault 12 years ago
parent
commit
e755e17bdc
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tests/parallel_tasks/cuda_only.c

+ 2 - 0
tests/parallel_tasks/cuda_only.c

@@ -99,6 +99,8 @@ int main(int argc, char **argv)
 	STARPU_RETURN(EXIT_SUCCESS);
 
 enodev:
+	task->destroy = 0;
+	starpu_task_destroy(task);
 	starpu_data_unregister(handle);
 	fprintf(stderr, "WARNING: No one can execute this task\n");
 	/* yes, we do not perform the computation but we did detect that no one