Sfoglia il codice sorgente

Fix destroying the task when it failed to be submitted

Samuel Thibault 13 anni fa
parent
commit
2dc547f6a2
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      tests/datawizard/interfaces/test_interfaces.c

+ 1 - 0
tests/datawizard/interfaces/test_interfaces.c

@@ -558,6 +558,7 @@ ram_to_ram(void)
 	if (err != 0)
 	{
 		err = TASK_SUBMISSION_FAILURE;
+		task->destroy = 0;
 		starpu_task_destroy(task);
 		goto out;
 	}