Fix freed memory read on DEBUG_STATS enabled