lightning
lightning copied to clipboard
psbt: Prevent memleak
When calling psbt_*_set_serial_id with a NULL ctx the key value gets leaked because it’s just a temporary variable (psbt_*_set_unknown makes a copy of key and doesn’t steal it).
Seems to only effect splicing usage but seems like a good general fix to have.
Changelog-None