bam
bam copied to clipboard
Correct Memory Allocation for temp1 in page_cache.h
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));