Fuga de memoria solucionada

This commit is contained in:
Juan Ferrer Toribio 2015-09-20 14:18:40 +02:00
parent d7222daf31
commit 66c8a0eed3
1 changed files with 2 additions and 1 deletions

View File

@ -228,6 +228,7 @@ proxy_auth_authenticate (ProxyAuth * self, MYSQL_PLUGIN_VIO * vio, MYSQL_SERVER_
{
int res = CR_ERROR;
gchar * query = NULL;
GError * error = NULL;
unsigned char * pkt;
// Check for the username
@ -303,7 +304,6 @@ proxy_auth_authenticate (ProxyAuth * self, MYSQL_PLUGIN_VIO * vio, MYSQL_SERVER_
// Replaces the user and the pass on the query template
GError * error = NULL;
RegexData regex_data;
regex_data.conn = conn;
regex_data.user = info->user_name;
@ -349,6 +349,7 @@ end:
if (conn)
g_async_queue_push (self->conn_pool, conn);
g_clear_error (&error);
g_free (query);
return res;
}