mirror of
https://gitee.com/wangbin579/cetus.git
synced 2024-12-02 03:47:41 +08:00
Fix one memory leak for admin
This commit is contained in:
parent
e18d29aa5a
commit
c40bf0b41f
@ -910,6 +910,8 @@ void send_admin_resp(chassis *cycle, network_mysqld_con *con)
|
||||
g_free(ch);
|
||||
|
||||
network_queue_clear(con->client->send_queue);
|
||||
g_free(con->plugin_con_state);
|
||||
con->plugin_con_state = NULL;
|
||||
network_mysqld_con_free(con);
|
||||
} else {
|
||||
con->state = ST_SEND_QUERY_RESULT;
|
||||
@ -946,6 +948,8 @@ process_admin_sql(cetus_cycle_t *cycle, cetus_channel_t *ch)
|
||||
send_admin_resp(cycle, con);
|
||||
}
|
||||
} else {
|
||||
g_free(con->plugin_con_state);
|
||||
con->plugin_con_state = NULL;
|
||||
network_mysqld_con_free(con);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user