summaryrefslogtreecommitdiffstats
path: root/Modules/CheckCSourceRuns.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-09-17 14:24:17 (GMT)
committerBrad King <brad.king@kitware.com>2013-09-17 14:27:08 (GMT)
commitad3d5c59b3c57112e3b96812ee8a66b08dcd864e (patch)
treef864a5ecfc989d2640b559fe3aa0e8f667db8a61 /Modules/CheckCSourceRuns.cmake
parent40c76c1dc84867aae6ef1b6138abed5de3eeb28b (diff)
downloadCMake-ad3d5c59b3c57112e3b96812ee8a66b08dcd864e.zip
CMake-ad3d5c59b3c57112e3b96812ee8a66b08dcd864e.tar.gz
CMake-ad3d5c59b3c57112e3b96812ee8a66b08dcd864e.tar.bz2
cmListFileLexer: Fix leak on error before EOF
Teach cmListFileLexerDestroy to call cmListFileLexerSetToken with a NULL token to free the token string buffer. Without this, if an error occurs before the token cleanup happens when EOF is reached, then the token string buffer may leak.
Diffstat (limited to 'Modules/CheckCSourceRuns.cmake')
0 files changed, 0 insertions, 0 deletions