Fuga de memoria solucionada
This commit is contained in:
parent
d7222daf31
commit
66c8a0eed3
|
@ -228,6 +228,7 @@ proxy_auth_authenticate (ProxyAuth * self, MYSQL_PLUGIN_VIO * vio, MYSQL_SERVER_
|
||||||
{
|
{
|
||||||
int res = CR_ERROR;
|
int res = CR_ERROR;
|
||||||
gchar * query = NULL;
|
gchar * query = NULL;
|
||||||
|
GError * error = NULL;
|
||||||
unsigned char * pkt;
|
unsigned char * pkt;
|
||||||
|
|
||||||
// Check for the username
|
// 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
|
// Replaces the user and the pass on the query template
|
||||||
|
|
||||||
GError * error = NULL;
|
|
||||||
RegexData regex_data;
|
RegexData regex_data;
|
||||||
regex_data.conn = conn;
|
regex_data.conn = conn;
|
||||||
regex_data.user = info->user_name;
|
regex_data.user = info->user_name;
|
||||||
|
@ -349,6 +349,7 @@ end:
|
||||||
if (conn)
|
if (conn)
|
||||||
g_async_queue_push (self->conn_pool, conn);
|
g_async_queue_push (self->conn_pool, conn);
|
||||||
|
|
||||||
|
g_clear_error (&error);
|
||||||
g_free (query);
|
g_free (query);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue