From e588cab5ee4d9f75806c5d518fc168238ea9047f Mon Sep 17 00:00:00 2001 From: Tom Tan Date: Tue, 26 Apr 2022 16:45:02 -0700 Subject: [PATCH] Fix scalar delete against array --- exporters/etw/include/opentelemetry/exporters/etw/utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exporters/etw/include/opentelemetry/exporters/etw/utils.h b/exporters/etw/include/opentelemetry/exporters/etw/utils.h index 8b0a015821..22a1c4fffc 100644 --- a/exporters/etw/include/opentelemetry/exporters/etw/utils.h +++ b/exporters/etw/include/opentelemetry/exporters/etw/utils.h @@ -193,8 +193,8 @@ static inline GUID GetProviderGuid(const char *providerName) guid.Data4[6] = buffer2[14]; guid.Data4[7] = buffer2[15]; - delete buffer; - delete buffer2; + delete[] buffer; + delete[] buffer2; return guid; }