Tests: Fix warning clang-analyzer-cplusplus.NewDeleteLeaks

Fix the warning: `potential leak of memory pointed to by "vp"`.
This commit is contained in:
nic-kaczinsky authored and Brad King committed 2021-04-16 11:49:51 -04:00
1 parent e5a098968c
commit ae2c24b0ba
1 file changed
+1 -1
@@ -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;
}