- TwoTuple<Uint8Array, ChannelManager> res_conv = new TwoTuple<Uint8Array, ChannelManager>(res_a, res_b_hu_conv);
+ TwoTuple<Uint8Array, ChannelManager> res_conv = new TwoTuple<Uint8Array, ChannelManager>(res_a, res_b_hu_conv, () -> {
+ bindings.C2Tuple_BlockHashChannelManagerZ_free(res);
+ });
+ res_b_hu_conv.ptrs_to.add(res_conv);