Skip to content

Commit b8a15b5

Browse files
committed
init
1 parent 827a532 commit b8a15b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ydb/library/yql/minikql/mkql_alloc.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ void TAllocState::CleanupPAllocList(TListEntry* root) {
3737
for (auto curr = root->Right; curr != root; ) {
3838
auto next = curr->Right;
3939
auto size = ((TMkqlPAllocHeader*)curr)->Size;
40-
MKQLFreeWithSize(curr, size, EMemorySubPool::Default); // may free items from OffloadedBlocksRoot
40+
auto fullSize = size + sizeof(TMkqlPAllocHeader);
41+
MKQLFreeWithSize(curr, fullSize, EMemorySubPool::Default); // may free items from OffloadedBlocksRoot
4142
curr = next;
4243
}
4344

0 commit comments

Comments
 (0)