Skip to content

Commit

Permalink
[chainmaker][#1330]add demo ptr check
Browse files Browse the repository at this point in the history
  • Loading branch information
Cavalierliu committed Dec 15, 2022
1 parent 56fe5ff commit 6ac4eed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions demo/demo_chainmaker/demo_chainmaker.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 6ac4eed

Please sign in to comment.