We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c2100e commit fbf95dfCopy full SHA for fbf95df
cpp/ql/src/experimental/Security/CWE/CWE-415/DoubleFree.c
@@ -2,7 +2,8 @@
2
buf = malloc(intSize);
3
...
4
free(buf);
5
- buf = NULL; // GOOD
+ buf = NULL;
6
+ if(buf) free(buf); // GOOD
7
8
9
0 commit comments