diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-05-12 12:23:55 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-05-12 12:23:55 (GMT) |
commit | 723b842ca1de2f8565717d7099f8ff61b63f6026 (patch) | |
tree | 660e260b4343b37166e4a2717ebdf9338cd90c84 /src/constexp.l | |
parent | 9a8bf5711e7bc603922a342447e27a81170b965a (diff) | |
download | Doxygen-723b842ca1de2f8565717d7099f8ff61b63f6026.zip Doxygen-723b842ca1de2f8565717d7099f8ff61b63f6026.tar.gz Doxygen-723b842ca1de2f8565717d7099f8ff61b63f6026.tar.bz2 |
Fixed memory leak in reentrant lexers
Diffstat (limited to 'src/constexp.l')
-rw-r--r-- | src/constexp.l | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/constexp.l b/src/constexp.l index f5862c7..86cf4c7 100644 --- a/src/constexp.l +++ b/src/constexp.l @@ -126,7 +126,10 @@ bool parseconstexp(const char *fileName,int lineNr,const QCString &s) //printf("Result: %ld\n",(long)g_resultValue); printlex(yy_flex_debug, FALSE, __FILE__, fileName); - return (long)yyextra->g_resultValue!=0; + bool result = (long)yyextra->g_resultValue!=0; + + constexpYYlex_destroy(yyscanner); + return result; } extern "C" { |