fabric walletDeinit wallet_ptr free failed #1335
Labels
bug
Something isn't working
Priority/P1
High priority. Features that will be implemented in the latest or next major/minor version.
Severity/major
Important features.
void BoatHlfabricWalletDeInit(BoatHlfabricWallet *wallet_ptr)
{
// BUINT16 i, j, k;
#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) */
}
The text was updated successfully, but these errors were encountered: