Skip to content

Commit fcf9fae

Browse files
authored
Merge b8a15b5 into 2e3d80e
2 parents 2e3d80e + b8a15b5 commit fcf9fae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ydb/library/yql/minikql/mkql_alloc.cpp

Lines changed: 2 additions & 1 deletion
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)