Skip to content

Commit e15614c

Browse files
committed
askrene: fix reservation leak in version 25.05
Changelog-Fixed: fix reservation leak in version 25.05 Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
1 parent 2b8b709 commit e15614c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/askrene/refine.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ refine_with_fees_and_limits(const tal_t *ctx,
592592
/* Total flowset probability is now easily calculated given reservations
593593
* contains the total amounts through each channel (once we remove them) */
594594
destroy_reservations(reservations, get_askrene(rq->plugin));
595-
tal_add_destructor2(reservations, destroy_reservations, get_askrene(rq->plugin));
595+
tal_del_destructor2(reservations, destroy_reservations, get_askrene(rq->plugin));
596596

597597
*flowset_probability = 1.0;
598598
for (size_t i = 0; i < tal_count(reservations); i++) {

0 commit comments

Comments
 (0)