diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2019-01-11 21:31:52 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2019-01-14 14:53:12 (GMT) |
commit | 613323a78bf33e22f510e41c8733fe2bc8df606a (patch) | |
tree | e4631cdd35d74319c894334626c27b7b5fd1497c /Source/LexerParser/cmDependsJavaLexer.in.l | |
parent | bf2503089b19d1462be7838ed7364361481587d4 (diff) | |
download | CMake-613323a78bf33e22f510e41c8733fe2bc8df606a.zip CMake-613323a78bf33e22f510e41c8733fe2bc8df606a.tar.gz CMake-613323a78bf33e22f510e41c8733fe2bc8df606a.tar.bz2 |
cmGlobalUnixMakefileGenerator3: Fix memory leak warning
this->Makefiles.empty() is called twice, leading clang scan-build
to falsely believe that the delete statement was causing a memory
leak. Fix this by using a unique_ptr to hold the temporary
cmMakefile. This also has the benefit of making the code
exception-safe.
Diffstat (limited to 'Source/LexerParser/cmDependsJavaLexer.in.l')
0 files changed, 0 insertions, 0 deletions