mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-01 17:47:30 +01:00
broadcast: don't leak in broadcast_del.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
5d1f71c3c0
commit
f80955c932
1 changed files with 1 additions and 0 deletions
|
@ -36,6 +36,7 @@ void broadcast_del(struct broadcast_state *bstate, u64 index, const u8 *payload)
|
|||
const struct queued_message *q = uintmap_del(&bstate->broadcasts, index);
|
||||
if (q != NULL) {
|
||||
assert(q->payload == payload);
|
||||
tal_free(q);
|
||||
broadcast_state_check(bstate, "broadcast_del");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue