Browse Source

Fix minor memory leak when requesting stats

master
Con Kolivas 10 years ago
parent
commit
37b2f3a8b2
  1. 2
      src/ckpool.c

2
src/ckpool.c

@ -354,10 +354,12 @@ retry:
LOGDEBUG("Listener received stratifierstats request");
msg = send_recv_proc(ckp->stratifier, "stats");
send_unix_msg(sockd, msg);
dealloc(msg);
} else if (cmdmatch(buf, "connectorstats")) {
LOGDEBUG("Listener received connectorstats request");
msg = send_recv_proc(ckp->connector, "stats");
send_unix_msg(sockd, msg);
dealloc(msg);
} else {
LOGINFO("Listener received unhandled message: %s", buf);
send_unix_msg(sockd, "unknown");

Loading…
Cancel
Save