Skip to content

Commit

Permalink
Add some missing fclose calls for lesskey files.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwsw committed Dec 22, 2021
1 parent ab526c6 commit 35c5543
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lesskey.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,5 +374,6 @@ main(argc, argv)
/* File trailer */
fputbytes(out, endsection, sizeof(endsection));
fputbytes(out, filetrailer, sizeof(filetrailer));
fclose(out);
return (0);
}
2 changes: 1 addition & 1 deletion lesskey_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,6 @@ parse_lesskey(infile, tables)
++linenum;
parse_line(line, tables);
}

fclose(desc);
return (errors);
}

0 comments on commit 35c5543

Please sign in to comment.