mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-09 00:54:22 +01:00
common/param: don't keep around the temporary array off cmd.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -313,7 +313,7 @@ const char *param_subcommand(struct command *cmd, const char *buffer,
|
||||
bool param(struct command *cmd, const char *buffer,
|
||||
const jsmntok_t tokens[], ...)
|
||||
{
|
||||
struct param *params = tal_arr(cmd, struct param, 0);
|
||||
struct param *params = tal_arr(tmpctx, struct param, 0);
|
||||
const char *name;
|
||||
va_list ap;
|
||||
bool allow_extra = false;
|
||||
|
||||
Reference in New Issue
Block a user