C++: Fix annotations.

This commit is contained in:
Mathias Vorreiter Pedersen
2023-04-13 11:07:12 +01:00
parent 31b71ea163
commit 1ac5db3a98

View File

@@ -99,7 +99,7 @@ void* use_after_free(void *a) {
void test_realloc1(void *a) {
free(a);
void *b = realloc(a, sizeof(a)*3); // BAD
void *b = realloc(a, sizeof(a)*3); // BAD [NOT DETECTED by cpp/double-free]
free(a); // BAD
free(b); // GOOD
}