소스 검색

_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 년 전
부모
커밋
2e0df412ac
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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);
 		}
 	}
 }