Fixed double freeing of buffers

The buffers in readwritesplit are handled at the routeQuery level and freeing
them at lower levels cause a double free of the used buffers.
This commit is contained in:
Markus Makela 2016-02-03 09:18:11 +02:00
parent d9eeb72198
commit e731f6a29e

View File

@ -2061,10 +2061,6 @@ static bool route_single_stmt(
(query_str == NULL ? "(empty)" : query_str));
free(query_str);
succp = false;
while(querybuf)
{
querybuf = GWBUF_CONSUME_ALL(querybuf);
}
goto retblock;
}