mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
C++: Fix annotations.
This commit is contained in:
@@ -164,7 +164,7 @@ void test_loop2(char ** a) {
|
||||
|
||||
void* test_realloc4() {
|
||||
void *a = 0;
|
||||
void *b = realloc(a, 10); // GOOD [FALSE POSITIVE]
|
||||
void *b = realloc(a, 10); // BAD for cpp/memory-never-freed
|
||||
if (!b) { return a; }
|
||||
return b;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user