Browse Source

src/core/task.c: free allocated memory

Nathalie Furmento 10 years ago
parent
commit
3e3d7659e4
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/core/task.c

+ 6 - 0
src/core/task.c

@@ -117,6 +117,12 @@ void starpu_task_clean(struct starpu_task *task)
 		task->dyn_interfaces = NULL;
 	}
 
+	if (task->dyn_modes)
+	{
+		free(task->dyn_modes);
+		task->dyn_modes = NULL;
+	}
+
 	struct _starpu_job *j = (struct _starpu_job *)task->starpu_private;
 
 	if (j)