bindings updates
[ldk-java] / src / main / java / org / ldk / structs / ChannelKeys.java
index dbad7616ffb351c7a0d417f29ab50aa5c7e5e278..500e69306f6d5ac81952d529acf6cb171b92b897 100644 (file)
@@ -110,7 +110,9 @@ public class ChannelKeys extends CommonBase {
                long ret = bindings.ChannelKeys_key_derivation_params(this.ptr);
                long ret_a = bindings.LDKC2Tuple_u64u64Z_get_a(ret);
                long ret_b = bindings.LDKC2Tuple_u64u64Z_get_b(ret);
-               TwoTuple<Long, Long> ret_conv = new TwoTuple<Long, Long>(ret_a, ret_b);
+               TwoTuple<Long, Long> ret_conv = new TwoTuple<Long, Long>(ret_a, ret_b, () -> {
+                       bindings.C2Tuple_u64u64Z_free(ret);
+               });
                return ret_conv;
        }