projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bb4b62
)
Close file to no leak file descriptor memory. Found by Coverity.
author
Michael Meskes
<
[email protected]
>
Sun, 8 Sep 2013 10:49:54 +0000
(12:49 +0200)
committer
Michael Meskes
<
[email protected]
>
Sun, 8 Sep 2013 11:13:13 +0000
(13:13 +0200)
src/interfaces/ecpg/preproc/pgc.l
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/ecpg/preproc/pgc.l
b/src/interfaces/ecpg/preproc/pgc.l
index 4d31f3bbe40048c7d34e9d44d01de978f53abe63..f2e7eddf86eb7dbb8318a66709f4f1c6a301120f 100644
(file)
--- a/
src/interfaces/ecpg/preproc/pgc.l
+++ b/
src/interfaces/ecpg/preproc/pgc.l
@@
-1355,6
+1355,7
@@
parse_include(void)
/* if the command was "include_next" we have to disregard the first hit */
if (yyin && include_next)
{
+ fclose (yyin);
yyin = NULL;
include_next = false;
}