浏览代码

BSocksClient: fix bug

ambrop7 13 年之前
父节点
当前提交
13b25d996a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      socksclient/BSocksClient.c

+ 1 - 0
socksclient/BSocksClient.c

@@ -200,6 +200,7 @@ void connector_handler (BSocksClient* o, int is_error)
     
 fail1:
     free_control_io(o);
+    BConnection_Free(&o->con);
 fail0:
     report_error(o, BSOCKSCLIENT_EVENT_ERROR);
     return;