From 45c859cb535dc77df46d3d7b99230ac72c804326 Mon Sep 17 00:00:00 2001 From: Pradish Date: Tue, 2 Jul 2024 23:25:17 +0530 Subject: [PATCH] Fix for Crash in ServiceArgumentParser via ServiceMain (#8353) Fix for #8310 Remove an extra call to free `wargv` that results in a double-free crash. --- osquery/main/windows/main.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/osquery/main/windows/main.cpp b/osquery/main/windows/main.cpp index 8171df2ba6f..255e97f6ee3 100644 --- a/osquery/main/windows/main.cpp +++ b/osquery/main/windows/main.cpp @@ -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);