Update INSOCKSServer and fix potential memory leak