Browse Source

Free buffer used for authorisation message

master
Con Kolivas 10 years ago
parent
commit
f34516bd4d
  1. 1
      src/stratifier.c

1
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, ASPRINTF(&buf, "Authorised, welcome to %s %s!", ckp->name,
client->user_instance->username); client->user_instance->username);
stratum_send_message(sdata, client, buf); stratum_send_message(sdata, client, buf);
free(buf);
} else { } else {
if (errnum < 0) if (errnum < 0)
stratum_send_message(sdata, client, "Authorisations temporarily offline :("); stratum_send_message(sdata, client, "Authorisations temporarily offline :(");

Loading…
Cancel
Save