Skip to content

Commit bdda2a7

Browse files
authored
Fix indentation in DoubleFreeBad.cpp comments
1 parent fb3140a commit bdda2a7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: cpp/ql/src/Critical/DoubleFreeBad.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ int* f() {
44
do_stuff(buff);
55
free(buff);
66
int *new_buffer = malloc(SIZE*sizeof(int));
7-
free(buff); // BAD: If new_buffer is assigned the same address as buff,
8-
// the memory allocator will free the new buffer memory region,
9-
// leading to use-after-free problems and memory corruption.
10-
7+
free(buff);
8+
// BAD: If new_buffer is assigned the same address as buff,
9+
// the memory allocator will free the new buffer memory region,
10+
// leading to use-after-free problems and memory corruption.
1111
return new_buffer;
1212
}

0 commit comments

Comments
 (0)