summaryrefslogtreecommitdiff
path: root/usr.bin/less
diff options
context:
space:
mode:
authorGleydson Soares <gsoares@cvs.openbsd.org>2016-01-27 15:36:47 +0000
committerGleydson Soares <gsoares@cvs.openbsd.org>2016-01-27 15:36:47 +0000
commite9dabbeb6e07a2c9b13da292546b6385f56ba65a (patch)
tree7a0907266bfb41bba77aca40a3dafa4273c0f675 /usr.bin/less
parent27490d8a6605fb144911eb32bedf30dc727847e8 (diff)
missing fclose(3). (silence cppcheck warnings).
OK mmcc@
Diffstat (limited to 'usr.bin/less')
-rw-r--r--usr.bin/less/lesskey.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/less/lesskey.c b/usr.bin/less/lesskey.c
index 8a33c726f73..869b3f4a767 100644
--- a/usr.bin/less/lesskey.c
+++ b/usr.bin/less/lesskey.c
@@ -753,6 +753,7 @@ main(int argc, char **argv)
++linenum;
parse_line(line);
}
+ fclose(desc);
/*
* Write the output file.
@@ -797,5 +798,6 @@ main(int argc, char **argv)
/* File trailer */
fputbytes(out, endsection, sizeof (endsection));
fputbytes(out, filetrailer, sizeof (filetrailer));
+ fclose(out);
return (0);
}