summaryrefslogtreecommitdiffstats
path: root/src/dotrunner.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-07-02 13:31:41 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-07-02 13:31:41 (GMT)
commit5059d796ea951d06cebc55f1a9158a8dd001af0e (patch)
tree8a08edd04bcd3b83e041c35d920ce52a42c4de47 /src/dotrunner.cpp
parent4a42645a32b579f9b2713031e45fd610b1e21f48 (diff)
downloadDoxygen-5059d796ea951d06cebc55f1a9158a8dd001af0e.zip
Doxygen-5059d796ea951d06cebc55f1a9158a8dd001af0e.tar.gz
Doxygen-5059d796ea951d06cebc55f1a9158a8dd001af0e.tar.bz2
High consequence coverity mesages
- initializing fd (analogous to htmldocvisitor) - always good to close file pointers
Diffstat (limited to 'src/dotrunner.cpp')
-rw-r--r--src/dotrunner.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dotrunner.cpp b/src/dotrunner.cpp
index b7ddda1..22a0081 100644
--- a/src/dotrunner.cpp
+++ b/src/dotrunner.cpp
@@ -128,6 +128,7 @@ bool DotRunner::readBoundingBox(const char *fileName,int *width,int *height,bool
if (p) // found PageBoundingBox or /MediaBox string
{
int x,y;
+ fclose(f);
if (sscanf(p+bblen,"%d %d %d %d",&x,&y,width,height)!=4)
{
//printf("readBoundingBox sscanf fail\n");
@@ -137,6 +138,7 @@ bool DotRunner::readBoundingBox(const char *fileName,int *width,int *height,bool
}
}
err("Failed to extract bounding box from generated diagram file %s\n",fileName);
+ fclose(f);
return FALSE;
}