Skip to content

Commit b65858f

Browse files
authored
trigger checks
1 parent 60e250c commit b65858f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/Critical/DoubleFreeBad.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ int* f() {
55
free(buff);
66
int *new_buffer = malloc(SIZE*sizeof(int));
77
free(buff);
8-
98
// BAD: If new_buffer is assigned the same address as buff,
109
// the memory allocator will free the new buffer memory region,
1110
// leading to use-after-free problems and memory corruption.
11+
// abc
1212
return new_buffer;
1313
}

0 commit comments

Comments
 (0)