8302218: CHeapBitMap::free frees with incorrect size

Reviewed-by: aboldtch, iklam, tschatzl
This commit is contained in:
quadhier 2023-05-22 16:51:20 +00:00 committed by Ioi Lam
parent d77a41033a
commit f99ad11dd1

View File

@ -131,7 +131,7 @@ CHeapBitMap::CHeapBitMap(idx_t size_in_bits, MEMFLAGS flags, bool clear)
}
CHeapBitMap::~CHeapBitMap() {
free(map(), size());
free(map(), size_in_words());
}
bm_word_t* CHeapBitMap::allocate(idx_t size_in_words) const {