From 38cef4993526f480eb5e54661acb5f655d0323c0 Mon Sep 17 00:00:00 2001 From: "P. J. McDermott" Date: Sun, 22 Sep 2013 17:23:24 -0400 Subject: [PATCH] Close input and output file handles. --- src/ssic.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ssic.pl b/src/ssic.pl index 8ecc30e..5cc04ef 100644 --- a/src/ssic.pl +++ b/src/ssic.pl @@ -152,6 +152,13 @@ sub compile } print($output_fh $ssi->process(<$input_fh>)); + + if ($input ne "-") { + close($input_fh); + } + if ($output ne "-") { + close($output_fh); + } } main(); -- 2.31.1