From f34516bd4d29da360d4c7311a09a6d92050937ad Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 21 Jan 2015 15:20:56 +1100 Subject: [PATCH] Free buffer used for authorisation message --- src/stratifier.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stratifier.c b/src/stratifier.c index 39a2583d..678062d2 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -3254,6 +3254,7 @@ static void sauth_process(ckpool_t *ckp, json_params_t *jp) ASPRINTF(&buf, "Authorised, welcome to %s %s!", ckp->name, client->user_instance->username); stratum_send_message(sdata, client, buf); + free(buf); } else { if (errnum < 0) stratum_send_message(sdata, client, "Authorisations temporarily offline :(");