mirror of
https://codeberg.org/nahuhh/wownero
synced 2026-03-06 06:37:34 -05:00
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