-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Labels
Priority/P1High priority. Features that will be implemented in the latest or next major/minor version.High priority. Features that will be implemented in the latest or next major/minor version.Severity/majorImportant features.Important features.bugSomething isn't workingSomething isn't working
Description
void BoatHlfabricWalletDeInit(BoatHlfabricWallet *wallet_ptr)
{
// BUINT16 i, j, k;
if (NULL == wallet_ptr)
{
BoatLog(BOAT_LOG_CRITICAL, "wallet_ptr needn't DeInit: wallet_ptr is NULL.");
return;
}
/* account_info DeInit */
if (wallet_ptr->account_info.prikeyCtx.keypair_name != NULL)
{
BoatFree(wallet_ptr->account_info.prikeyCtx.keypair_name);
wallet_ptr->account_info.prikeyCtx.keypair_name = NULL;
}
/* tlsClinet_info DeInit */
#if (BOAT_HLFABRIC_TLS_SUPPORT == 1)
// for c99, free(NULL) will return directly, so here
// use BOAT_HLFABRIC_ROOTCA_MAX_NUM as cyclic maximum is acceptable.
if (wallet_ptr->tlsCAchain.ca.field_ptr != NULL)
{
BoatFree(wallet_ptr->tlsCAchain.ca.field_ptr);
}
wallet_ptr->tlsCAchain.ca.field_len = 0;
#endif /* #if (BOAT_HLFABRIC_TLS_SUPPORT == 1) */
/* network_info DeInit */
BoATHlfabric_FreeNetworkData(wallet_ptr->network_info);
/* http2Context DeInit */
http2DeInit(wallet_ptr->http2Context_ptr);
/* wallet_ptr DeInit */
BoatFree(wallet_ptr);
/* set NULL after free completed */
wallet_ptr = NULL;
}
Metadata
Metadata
Assignees
Labels
Priority/P1High priority. Features that will be implemented in the latest or next major/minor version.High priority. Features that will be implemented in the latest or next major/minor version.Severity/majorImportant features.Important features.bugSomething isn't workingSomething isn't working