Commit 426bb27d authored by Marek Vavruša's avatar Marek Vavruša
Browse files

daemon: fixed memleak in CLI

parent 7a2bafc2
......@@ -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("> ");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment