Skip to content

Commit a6104ad

Browse files
committed
C++: Fix test annotations.
1 parent c6c487d commit a6104ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/test/query-tests/Critical/MemoryFreed/test_free.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ void test_ptr_deref(void ** a) {
126126
free(*a);
127127
*a = malloc(10);
128128
free(*a); // GOOD
129-
free(*a); // BAD [NOT DETECTED]
129+
free(*a); // BAD
130130
*a = malloc(10);
131131
free(a[0]); // GOOD
132-
free(a[1]); // GOOD
132+
free(a[1]); // GOOD [FALSE POSITIVE]
133133
}
134134

135135
struct list {

0 commit comments

Comments
 (0)