diff options
author | Stefan Bühler <stbuehler@web.de> | 2009-09-01 14:03:59 +0000 |
---|---|---|
committer | Stefan Bühler <stbuehler@web.de> | 2009-09-01 14:03:59 +0000 |
commit | f9e65e850097d8862ad86c47ebcf25937554c383 (patch) | |
tree | 5acfca881a03672495d322c782a49ba2a72e7108 /src/lemon.c | |
parent | 34d3f7da99a42701a331128d3a25f2c1369dde31 (diff) | |
download | lighttpd-git-f9e65e850097d8862ad86c47ebcf25937554c383.tar.gz |
Fixed some small non-critical leaks reported by cppcheck
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2618 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/lemon.c')
-rw-r--r-- | src/lemon.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lemon.c b/src/lemon.c index 63990d78..48df45f5 100644 --- a/src/lemon.c +++ b/src/lemon.c @@ -2341,6 +2341,7 @@ struct lemon *gp; if( filebuf==0 ){ ErrorMsg(ps.filename,0,"Can't allocate %d of memory to hold this file.", filesize+1); + fclose(fp); gp->errorcnt++; return; } @@ -2348,6 +2349,7 @@ struct lemon *gp; ErrorMsg(ps.filename,0,"Can't read in all %d bytes of this file.", filesize); free(filebuf); + fclose(fp); gp->errorcnt++; return; } |