diff a/src/hotspot/os/windows/os_perf_windows.cpp b/src/hotspot/os/windows/os_perf_windows.cpp --- a/src/hotspot/os/windows/os_perf_windows.cpp +++ b/src/hotspot/os/windows/os_perf_windows.cpp @@ -223,13 +223,13 @@ assert(process_query != NULL, "invariant"); return allocate_counters(&process_query->set, nofCounters); } static void deallocate_counters(MultiCounterQueryP query) { - FREE_C_HEAP_ARRAY(char, query->counters); - query->counters = NULL; - query->noOfCounters = 0; + FREE_C_HEAP_ARRAY(char, query->counters); + query->counters = NULL; + query->noOfCounters = 0; } static OSReturn add_counter(UpdateQueryP query, HCOUNTER* counter, const char* path, bool first_sample_on_init) { assert(query != NULL, "invariant"); assert(counter != NULL, "invariant");