- Replaced all free() with wfree() where appropriate