From: Marek VavruĊĦa Date: Mon, 27 Apr 2015 14:18:42 +0000 (+0200) Subject: daemon: fixed memleak in CLI X-Git-Tag: v1.0.0-beta1~228^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=426bb27d9e1b137ae31651475cba7725770c6e6b;p=thirdparty%2Fknot-resolver.git daemon: fixed memleak in CLI --- diff --git a/daemon/main.c b/daemon/main.c index 1f9906f0b..f3f4fe547 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -35,6 +35,7 @@ static void tty_read(uv_stream_t *stream, ssize_t nread, const uv_buf_t *buf) cmd[nread - 1] = '\0'; /* Execute */ engine_cmd((struct engine *)stream->data, cmd); + free(buf->base); } printf("> ");