diff --git a/modules/wallet/dap_chain_wallet.c b/modules/wallet/dap_chain_wallet.c index faca7e499fe0748f7ba746bc31a1192dcb0f8ec9..2dcf830f13500f56966861cd922b6ebd57155f7b 100644 --- a/modules/wallet/dap_chain_wallet.c +++ b/modules/wallet/dap_chain_wallet.c @@ -363,7 +363,9 @@ const char* dap_chain_wallet_get_path(dap_config_t * a_config) return log_it(L_WARNING, "No path to wallet's store has been defined"), l_cp; - return strncpy(s_wallets_path, l_cp, sizeof(s_wallets_path) - 1 ); /* Make local copy , return it to caller */ + strncpy(s_wallets_path, l_cp, sizeof(s_wallets_path) - 1 ); /* Make local copy , return it to caller */ + DAP_DEL_Z(l_cp); + return s_wallets_path; } /**