lightning icon indicating copy to clipboard operation
lightning copied to clipboard

psbt: Prevent memleak

Open ddustin opened this issue 3 years ago • 0 comments

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

ddustin avatar Oct 18 '22 18:10 ddustin