Browse Source

peer_htlcs.c: close taken() leak.

Found in tests/test_connection.py::test_restart_many_payments:

`lightningd: outstanding taken(): lightningd/peer_htlcs.c:532:towire_temporary_channel_failure(((void *)0), ((void *)0))`

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
fix-mocks
Rusty Russell 4 years ago
committed by Christian Decker
parent
commit
dc745cdf2f
  1. 3
      lightningd/peer_htlcs.c

3
lightningd/peer_htlcs.c

@ -324,6 +324,9 @@ static void fail_out_htlc(struct htlc_out *hout,
hout->failmsg);
fail_in_htlc(hout->in, failonion);
}
} else {
if (taken(failmsg_needs_update))
tal_free(failmsg_needs_update);
}
}

Loading…
Cancel
Save