mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
QL code and tests for C#/C++/JavaScript.
This commit is contained in:
5
cpp/ql/src/Critical/NewDeleteArrayMismatch.cpp
Normal file
5
cpp/ql/src/Critical/NewDeleteArrayMismatch.cpp
Normal file
@@ -0,0 +1,5 @@
|
||||
Record *ptr = new Record(...);
|
||||
|
||||
...
|
||||
|
||||
delete [] ptr; // ptr was created using 'new', but was freed using 'delete[]'
|
||||
Reference in New Issue
Block a user