Files
codeql/cpp/ql/src/Critical/MemoryNeverFreed.cpp
2018-08-02 17:53:23 +01:00

7 lines
170 B
C++

int main(int argc, char* argv[]) {
int *buff = malloc(SIZE * sizeof(int));
int status = 0;
... //code that does not free buff
return status; //buff is never closed
}