diff --git a/build.sh b/build.sh index 74d0fd4..6e501db 100755 --- a/build.sh +++ b/build.sh @@ -5,8 +5,8 @@ cargo test --features c-headers -- generate_headers # cc export LD_LIBRARY_PATH=`pwd`/target/debug cc cc/bdk_ffi_test.c -o cc/bdk_ffi_test -L target/debug -l bdk_ffi -l pthread -l dl -l m -#valgrind --leak-check=full cc/bdk_ffi_test -cc/bdk_ffi_test +valgrind --leak-check=full cc/bdk_ffi_test +#cc/bdk_ffi_test # bdk-kotlin mkdir -p bdk-kotlin/jar/libs/x86_64_linux diff --git a/cc/bdk_ffi_test.c b/cc/bdk_ffi_test.c index 83ed17d..48cc0fd 100644 --- a/cc/bdk_ffi_test.c +++ b/cc/bdk_ffi_test.c @@ -35,8 +35,11 @@ int main (int argc, char const * const argv[]) // test free_wallet NULL doesn't crash free_wallet(NULL); - // verify sync_wallet after sync_wallet fails (double free detected, core dumped) - ////sync_wallet(&wallet); + // verify free_wallet after free_wallet fails (core dumped) + ////free_wallet(wallet); + + // verify sync_wallet after free_wallet fails (core dumped) + ////sync_wallet(wallet); } return EXIT_SUCCESS;