diff --git a/min-bindings/C#/ckzg.c b/min-bindings/C#/ckzg.c index 8177f35..2ffd3e5 100644 --- a/min-bindings/C#/ckzg.c +++ b/min-bindings/C#/ckzg.c @@ -33,6 +33,11 @@ KZGSettings* load_trusted_setup_wrap(const char* file) { return out; } +void free_trusted_setup_wrap(KZGSettings* s) { + free_trusted_setup(s); + free(s); +} + BLSFieldElement* bytes_to_bls_field_wrap(const uint8_t bytes[]) { BLSFieldElement* out = (BLSFieldElement*)malloc(sizeof(BLSFieldElement)); bytes_to_bls_field(out, bytes); diff --git a/min-bindings/C#/tests.cs b/min-bindings/C#/tests.cs index 6858461..5e66956 100644 --- a/min-bindings/C#/tests.cs +++ b/min-bindings/C#/tests.cs @@ -13,7 +13,7 @@ class ckzg { [DllImport("ckzg.dll", EntryPoint="load_trusted_setup_wrap")] public static extern IntPtr load_trusted_setup(string filename); - [DllImport("ckzg.dll", EntryPoint="free_trusted_setup")] + [DllImport("ckzg.dll", EntryPoint="free_trusted_setup_wrap")] public static extern void free_trusted_setup(IntPtr ts); [DllImport("ckzg.dll", EntryPoint="free")]