From 3ef9b0927d5c0f82ddf392a86954a6afc71ac607 Mon Sep 17 00:00:00 2001 From: Markus Makela Date: Mon, 11 May 2015 15:33:36 +0300 Subject: [PATCH] Fixed minor memory leak in mysql_backend when gw_decode_mysql_server_handshake failed. --- server/modules/protocol/mysql_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/protocol/mysql_common.c b/server/modules/protocol/mysql_common.c index 2dc77a7ac..0e85f51ed 100644 --- a/server/modules/protocol/mysql_common.c +++ b/server/modules/protocol/mysql_common.c @@ -287,7 +287,7 @@ int gw_read_backend_handshake( pthread_self(), conn->owner_dcb->fd, pthread_self()))); - + while(head = gwbuf_consume(head, GWBUF_LENGTH(head))); return 1; }