mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 05:13:25 +01:00
windows_service: fix memory leak
Found by codacy.com
This commit is contained in:
parent
0dac3c6428
commit
1a0733e534
@ -70,8 +70,9 @@ namespace {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return std::string{p_error_text};
|
std::string ret{p_error_text};
|
||||||
LocalFree(p_error_text);
|
LocalFree(p_error_text);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user