Fixed memory allocation and crash bug

Turns out a size of a pointer whose memory has been allocated is, nonetheless, the size of a pointer. Who would've thunk?