Skip to content
Snippets Groups Projects
Commit ae2c24b0 authored by nic-kaczinsky's avatar nic-kaczinsky Committed by Brad King
Browse files

Tests: Fix warning clang-analyzer-cplusplus.NewDeleteLeaks

Fix the warning: `potential leak of memory pointed to by "vp"`.
parent e5a09896
No related branches found
No related tags found
No related merge requests found
#define assert(E) \
if (!(E)) \
return 1;
......@@ -38,6 +37,7 @@ int someFunc()
}
int* vp = new int[i];
delete[] vp;
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment