Merge pull request #1293 from ihsinme/patch-1

fix memory leak.

(cherry picked from commit 628ca79e6afc7008fd615598cc6797537f2bf065)
This commit is contained in:
ailin-nemui 2021-04-02 14:44:32 +02:00 committed by Ailin Nemui
parent aa7dfea534
commit d05e65b2f9

View File

@ -158,6 +158,7 @@ static gboolean sasl_reassemble_incoming(IRC_SERVER_REC *server, const char *fra
* Fail authentication with this server. They have sent too much data.
*/
if (enc_req->len > AUTHENTICATE_MAX_SIZE) {
g_string_free(enc_req, TRUE);
return FALSE;
}