From 0a3b38fb20e55a2a4d233023a3067d67151f88ec Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sun, 16 Dec 2018 15:11:06 +1030 Subject: [PATCH] jsonrpc: fix leak. Signed-off-by: Rusty Russell --- lightningd/jsonrpc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lightningd/jsonrpc.c b/lightningd/jsonrpc.c index 24f5e9566..b0d6db6ff 100644 --- a/lightningd/jsonrpc.c +++ b/lightningd/jsonrpc.c @@ -614,6 +614,7 @@ static struct io_plan *stream_out_complete(struct io_conn *conn, struct json_connection *jcon) { jcon_remove_json_stream(jcon, js); + tal_free(js); if (jcon->stop) { log_unusual(jcon->log, "JSON-RPC shutdown");