jsonrpc: free old connections

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2016-11-01 21:34:57 +10:30
parent a4ee683b3e
commit 5f32d291bf
1 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@ static void finish_jcon(struct io_conn *conn, struct json_connection *jcon)
log_unusual(jcon->log, "Abandoning current command");
jcon->current->jcon = NULL;
}
tal_free(jcon);
}
static void json_help(struct command *cmd,