提交 07d9cfa9 编写于 作者: Y yuqing

bug fixed: caused by memory organize

上级 65d0e022
...@@ -266,7 +266,7 @@ ConnectionInfo *conn_pool_get_connection(ConnectionPool *cp, ...@@ -266,7 +266,7 @@ ConnectionInfo *conn_pool_get_connection(ConnectionPool *cp,
cm->free_count); cm->free_count);
conn_pool_disconnect_server(ci); conn_pool_disconnect_server(ci);
free(ci); free(node);
continue; continue;
} }
...@@ -328,7 +328,7 @@ int conn_pool_close_connection_ex(ConnectionPool *cp, ConnectionInfo *conn, ...@@ -328,7 +328,7 @@ int conn_pool_close_connection_ex(ConnectionPool *cp, ConnectionInfo *conn,
conn->sock, cm->total_count, cm->free_count); conn->sock, cm->total_count, cm->free_count);
conn_pool_disconnect_server(conn); conn_pool_disconnect_server(conn);
free(conn); free(node);
} }
else else
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册