Skip to content

Commit

Permalink
common/param: don't keep around the temporary array off cmd.
Browse files Browse the repository at this point in the history
Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell committed Feb 26, 2022
1 parent 3218e53 commit 9bf2aa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/param.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9bf2aa6

Please sign in to comment.