8000 Close file to no leak file descriptor memory. Found by Coverity. · sqlparser/postgres@3f092db · GitHub
[go: up one dir, main page]

Skip to content

Commit 3f092db

Browse files
author
Michael Meskes
committed
Close file to no leak file descriptor memory. Found by Coverity.
1 parent fde440e commit 3f092db

File tree

1 file changed

+1
-0
lines changed
  • src/interfaces/ecpg/preproc

1 file changed

+1
-0
lines changed

src/interfaces/ecpg/preproc/pgc.l

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,6 +1352,7 @@ parse_include(void)
13521352
/* if the command was "include_next" we have to disregard the first hit */
13531353
if (yyin && include_next)
13541354
{
1355+
fclose (yyin);
13551356
yyin = NULL;
13561357
include_next = false;
13571358
}

0 commit comments

Comments
 (0)
0