浏览代码

Fix destroying the task when it failed to be submitted

Samuel Thibault 13 年之前
父节点
当前提交
2dc547f6a2
共有 1 个文件被更改,包括 1 次插入0 次删除
  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;
 	}