Explorar o código

Coccinelle: destroy_task_on_error.cocci: set task->destroy to 0 before calling starpu_task_destroy().

Cyril Roelandt %!s(int64=13) %!d(string=hai) anos
pai
achega
485aea04f3
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      tools/dev/experimental/destroy_task_on_error.cocci

+ 2 - 0
tools/dev/experimental/destroy_task_on_error.cocci

@@ -98,12 +98,14 @@ if@p (...)
 (
 {
 ...
++ t->destroy = 0;
 + starpu_task_destroy(t);
 return ...;
 }
 |
 {
 ...
++ t->destroy = 0;
 + starpu_task_destroy(t);
 }
 )