- Fixed memory leaks on socket module