소스 검색

Fix memory leak

Samuel Thibault 14 년 전
부모
커밋
1c446ee4eb
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/datawizard/filters.c

+ 2 - 1
src/datawizard/filters.c

@@ -338,7 +338,8 @@ void starpu_data_unpartition(starpu_data_handle_t root_handle, uint32_t gatherin
 	}
 
 	/* there is no child anymore */
-	//free(root_handle->children);
+	free(root_handle->children);
+	root_handle->children = NULL;
 	root_handle->nchildren = 0;
 
 	/* now the parent may be used again so we release the lock */