windows_service: fix memory leak

Found by codacy.com
pull/130/head
moneromooo-monero 6 years ago
parent 0dac3c6428
commit 1a0733e534
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

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

Loading…
Cancel
Save