From ae2c24b0bafd341928fd6e95acc60ece2c45aa0e Mon Sep 17 00:00:00 2001 From: nic-kaczinsky Date: Fri, 16 Apr 2021 06:55:30 +0000 Subject: Tests: Fix warning clang-analyzer-cplusplus.NewDeleteLeaks Fix the warning: `potential leak of memory pointed to by "vp"`. --- Tests/CompileFeatures/cxx_contextual_conversions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/CompileFeatures/cxx_contextual_conversions.cpp b/Tests/CompileFeatures/cxx_contextual_conversions.cpp index 247f13f..fe8d5c0 100644 --- a/Tests/CompileFeatures/cxx_contextual_conversions.cpp +++ b/Tests/CompileFeatures/cxx_contextual_conversions.cpp @@ -1,4 +1,3 @@ - #define assert(E) \ if (!(E)) \ return 1; @@ -38,6 +37,7 @@ int someFunc() } int* vp = new int[i]; + delete[] vp; return 0; } -- cgit v0.12