gossipd: fix leak in gossip_store_add_channel_delete.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2018-08-24 14:50:06 +09:30 committed by Christian Decker
parent 90d1062a55
commit a475098928

View File

@ -239,6 +239,7 @@ void gossip_store_add_channel_delete(struct gossip_store *gs,
{
u8 *msg = towire_gossip_store_channel_delete(NULL, scid);
gossip_store_append(gs->fd, gs->rstate, msg);
tal_free(msg);
}
void gossip_store_load(struct routing_state *rstate, struct gossip_store *gs)