forked from such-gitea/wownero
windows_service: fix memory leak
Found by codacy.com
This commit is contained in:
@@ -70,8 +70,9 @@ namespace {
|
||||
}
|
||||
else
|
||||
{
|
||||
return std::string{p_error_text};
|
||||
std::string ret{p_error_text};
|
||||
LocalFree(p_error_text);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user