windows_service: fix memory leak

Found by codacy.com
This commit is contained in:
moneromooo-monero 2018-11-23 14:14:54 +00:00
parent 0dac3c6428
commit 1a0733e534
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -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;
} }
} }