Skip to content

Commit

Permalink
Fix for Crash in ServiceArgumentParser via ServiceMain (osquery#8353)
Browse files Browse the repository at this point in the history
Fix for osquery#8310

Remove an extra call to free `wargv` that results in a double-free crash.
  • Loading branch information
pradishmp authored Jul 2, 2024
1 parent b46d969 commit 45c859c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion osquery/main/windows/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ class ServiceArgumentParser {
// On error, bail out and clean up the vector
if (arg == nullptr) {
cleanArgs();
::LocalFree(wargv);
break;
}
args_.push_back(arg);
Expand Down

0 comments on commit 45c859c

Please sign in to comment.