Browse Source

tlv: free intermediate messages when they're created

otherwise they'll get cleaned up when the message is free'd.
it's nbd either way, but this seems tighter.
pr-2587
lisa neigut 6 years ago
committed by Rusty Russell
parent
commit
5d8b059ccc
  1. 1
      tools/generate-wire.py

1
tools/generate-wire.py

@ -839,6 +839,7 @@ tlv__type_impl_towire_fields = """\tif ({tlv_name}->{name}) {{
\t\tmsg_len = tal_count(tlv_msg);
\t\ttowire_u8(p, msg_len);
\t\ttowire_u8_array(p, tlv_msg, msg_len);
\t\ttal_free(tlv_msg);
\t}}
"""

Loading…
Cancel
Save