mirror of
https://github.com/github/codeql.git
synced 2026-05-31 11:31:23 +02:00
11 lines
126 B
C++
11 lines
126 B
C++
void test()
|
|
{
|
|
char *foo = malloc(100);
|
|
|
|
// BAD
|
|
if (foo)
|
|
free(foo);
|
|
|
|
// GOOD
|
|
free(foo);
|
|
} |