mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 10:46:58 +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);
|
const struct queued_message *q = uintmap_del(&bstate->broadcasts, index);
|
||||||
if (q != NULL) {
|
if (q != NULL) {
|
||||||
assert(q->payload == payload);
|
assert(q->payload == payload);
|
||||||
|
tal_free(q);
|
||||||
broadcast_state_check(bstate, "broadcast_del");
|
broadcast_state_check(bstate, "broadcast_del");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue