summaryrefslogtreecommitdiffstats
path: root/src/pre.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-08-31 14:52:19 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-08-31 14:52:19 (GMT)
commit41887832b90698df95e8d222cdc0a541ae2f2284 (patch)
tree9ac6b9d9f07d8c5821fdd1b7d689db594a09414e /src/pre.l
parentb59edd279f887e55b162ae1b1c7bce4b2ca29dab (diff)
downloadDoxygen-41887832b90698df95e8d222cdc0a541ae2f2284.zip
Doxygen-41887832b90698df95e8d222cdc0a541ae2f2284.tar.gz
Doxygen-41887832b90698df95e8d222cdc0a541ae2f2284.tar.bz2
Fixed a number of issues (resource leaks, uninitialized members, etc) found by coverity
Diffstat (limited to 'src/pre.l')
-rw-r--r--src/pre.l3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pre.l b/src/pre.l
index c3eeb2a..ebc6cf8 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -207,6 +207,7 @@ class DefineManager
if (dpf==0)
{
dpf = new DefinesPerFile;
+ m_fileMap.insert(fileName,dpf);
}
dpf->addDefine(def);
}
@@ -223,6 +224,7 @@ class DefineManager
if (dpf==0)
{
dpf = new DefinesPerFile;
+ m_fileMap.insert(fromFileName,dpf);
}
dpf->addInclude(toFileName);
}
@@ -2283,6 +2285,7 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'"))
}
<DefName>{ID}/("\\\n")*"(" { // define with argument
//printf("Define() `%s'\n",yytext);
+ delete g_argDict;
g_argDict = new QDict<int>(31);
g_argDict->setAutoDelete(TRUE);
g_defArgs = 0;