Files
codeql/cpp/ql/src/Critical/DeadCodeGoto.cpp
2018-10-17 11:58:51 -07:00

8 lines
152 B
C++

goto err1;
free(pointer); // BAD: this line is unreachable
err1: return -1;
free(pointer); // GOOD: this line is reachable
goto err2;
err2: return -1;