Fixed memory corruption due to invalid free of 'qi->stmt_info->query' #3427

pull/3453/head
Javier Jaramago Fernández 5 years ago
parent a5208f62b7
commit 65e8caf9b6

@ -1710,7 +1710,9 @@ __exit_process_mysql_query:
if (len < stackbuffer_size) {
// query is in the stack
} else {
l_free(len+1,query);
if (ptr) {
l_free(len+1,query);
}
}
if (sess->mirror==false) { // we process comments only on original queries, not on mirrors
if (qp && qp->first_comment) {

Loading…
Cancel
Save