Browse Source

_starpu_unlock_post_sync_tasks(): free the _starpu_task_wrapper_list allocated in _starpu_add_post_sync_tasks().

This should fix a memory leak caused by a call to starpu_data_acquire.
Cyril Roelandt 13 years ago
parent
commit
2e0df412ac
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/core/dependencies/implicit_data_deps.c

+ 2 - 0
src/core/dependencies/implicit_data_deps.c

@@ -449,7 +449,9 @@ void _starpu_unlock_post_sync_tasks(starpu_data_handle_t handle)
 
 			int ret = starpu_task_submit(link->task);
 			STARPU_ASSERT(!ret);
+			struct _starpu_task_wrapper_list *tmp = link;
 			link = link->next;
+			free(tmp);
 		}
 	}
 }