mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
broadcast: don't leak in broadcast_del.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
5d1f71c3c0
commit
f80955c932
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user