Skip to content

Commit aef9d25

Browse files
author
Michael Meskes
committed
Close file to no leak file descriptor memory. Found by Coverity.
1 parent 8e67a28 commit aef9d25

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
@@ -1354,6 +1354,7 @@ parse_include(void)
13541354
/* if the command was "include_next" we have to disregard the first hit */
13551355
if (yyin && include_next)
13561356
{
1357+
fclose (yyin);
13571358
yyin = NULL;
13581359
include_next = false;
13591360
}

0 commit comments

Comments
 (0)