client: fix bug introduced by pr #65

lack of free
explicit type conversion btween void* and char*
Merge pull request #2 from NetEase/master

我是釣魚小能人