From 7612553e75f9ffb940b16a53004bec75f31803be Mon Sep 17 00:00:00 2001 From: Michael Meskes Date: Sun, 8 Sep 2013 12:49:54 +0200 Subject: [PATCH] Close file to no leak file descriptor memory. Found by Coverity. --- src/interfaces/ecpg/preproc/pgc.l | 1 + 1 file changed, 1 insertion(+) diff --git a/src/interfaces/ecpg/preproc/pgc.l b/src/interfaces/ecpg/preproc/pgc.l index 4d31f3bbe4..f2e7eddf86 100644 --- 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; } -- 2.40.0