diff --git a/plugins/keysend.c b/plugins/keysend.c index e3dd2d37a..24743389d 100644 --- a/plugins/keysend.c +++ b/plugins/keysend.c @@ -156,7 +156,7 @@ static struct command_result *json_keysend(struct command *cmd, const char *buf, p = payment_new(cmd, cmd, NULL /* No parent */, pay_mods); p->local_id = &my_id; - p->json_buffer = tal_steal(p, buf); + p->json_buffer = tal_dup_talarr(p, const char, buf); p->json_toks = params; p->destination = tal_steal(p, destination); p->destination_has_tlv = true;