Browse Source

broadcast: don't leak in broadcast_del.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 6 years ago
committed by Christian Decker
parent
commit
f80955c932
  1. 1
      gossipd/broadcast.c

1
gossipd/broadcast.c

@ -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…
Cancel
Save