Merge pull request #4894

aee7a4e3 wallet_rpc_server: do not use RPC data if the call failed (moneromooo-monero)
1a0733e5 windows_service: fix memory leak (moneromooo-monero)
0dac3c64 unit_tests: do not rethrow a copy of an exception (moneromooo-monero)
5d9915ab cryptonote: fix get_unit for non default settings (moneromooo-monero)
d4f50cb1 remove some unused code (moneromooo-monero)
61163971 a few minor (but easy) performance tweaks (moneromooo-monero)
30023074 tests: slow_memmem now returns size_t (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2018-12-04 17:33:18 +02:00
commit 81418cb281
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD
30 changed files with 41 additions and 145 deletions

View file

@ -70,8 +70,9 @@ namespace {
}
else
{
return std::string{p_error_text};
std::string ret{p_error_text};
LocalFree(p_error_text);
return ret;
}
}