Bug Fix: Accessing freed memory

- Yup.
Bug Fix: Zone port allocation

- Previously no ports were being allocated and we were just using some
random value from memory.
Bug Fix: Uninitialised variable

8(