Fix calculating the base address in free.