From 6ac4eedb64b22b047190e62a0d4b00b4f6e98247 Mon Sep 17 00:00:00 2001 From: liuzhenhe <1350928576@qq.com> Date: Thu, 15 Dec 2022 21:57:45 +0800 Subject: [PATCH] [chainmaker][#1330]add demo ptr check --- demo/demo_chainmaker/demo_chainmaker.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/demo/demo_chainmaker/demo_chainmaker.c b/demo/demo_chainmaker/demo_chainmaker.c index 31fddc193..fb1eb3b2e 100644 --- a/demo/demo_chainmaker/demo_chainmaker.c +++ b/demo/demo_chainmaker/demo_chainmaker.c @@ -309,6 +309,11 @@ int main(int argc, char *argv[]) BoatLog(BOAT_LOG_CRITICAL, "Exception: %d", boat_exception); } + if (g_chaninmaker_wallet_ptr != NULL) + { + BoatChainmakerWalletDeInit(g_chaninmaker_wallet_ptr); + } + BoatChainmakerWalletDeInit(g_chaninmaker_wallet_ptr); /* step-8: Boat SDK Deinitialization */