bam icon indicating copy to clipboard operation
bam copied to clipboard

Correct Memory Allocation for temp1 in page_cache.h

Open WWWzq-01 opened this issue 9 months ago • 2 comments

I noticed the code in include/page_cache.h: https://github.com/ZaidQureshi/bam/blob/d20ef4ac5d4513a411422e41caf48562977504dc/include/page_cache.h#L810 Wondering if it should be:

uint64_t* temp1 = new uint64_t[np];

or

uint64_t* temp1 = (uint64_t*) malloc(np * sizeof(uint64_t));

WWWzq-01 avatar May 23 '24 03:05 WWWzq-01