From 7db7616f2b0fced7ba216933d408269654c540e0 Mon Sep 17 00:00:00 2001 From: Alexey Osipov Date: Thu, 10 Nov 2022 19:23:40 +0300 Subject: [PATCH] Fix packaing and settings loading --- bindings/csharp/Ckzg.Bindings/Ckzg.Bindings.csproj | 6 +++--- bindings/csharp/ckzg.c | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bindings/csharp/Ckzg.Bindings/Ckzg.Bindings.csproj b/bindings/csharp/Ckzg.Bindings/Ckzg.Bindings.csproj index e84f7f8..7649ca7 100644 --- a/bindings/csharp/Ckzg.Bindings/Ckzg.Bindings.csproj +++ b/bindings/csharp/Ckzg.Bindings/Ckzg.Bindings.csproj @@ -11,7 +11,7 @@ True Ckzg.Bindings LICENSE - 0.1.0.1 + 0.1.0.2 @@ -25,12 +25,12 @@ Always true - lib\$(TargetFramework)\runtimes + runtimes\ Always true - lib\$(TargetFramework)\runtimes + runtimes\ diff --git a/bindings/csharp/ckzg.c b/bindings/csharp/ckzg.c index 897b369..6e7fa17 100644 --- a/bindings/csharp/ckzg.c +++ b/bindings/csharp/ckzg.c @@ -13,8 +13,9 @@ KZGSettings* load_trusted_setup_wrap(const char* file) { if (f == NULL) { free(out); return NULL; } - if (load_trusted_setup(out, f) != C_KZG_OK) { free(out); return NULL; } + if (load_trusted_setup(out, f) != C_KZG_OK) { free(out); fclose(f); return NULL; } + fclose(f); return out; }