mirror of
https://github.com/github/codeql.git
synced 2025-12-24 20:56:33 +01:00
10 lines
180 B
C++
10 lines
180 B
C++
int f() {
|
|
char* buf = new char[SIZE];
|
|
....
|
|
if (error) {
|
|
free(buf); //error handling has freed the buffer
|
|
}
|
|
...
|
|
log_contents(buf); //but it is still used here for logging
|
|
}
|