Commit eed0090e authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: close a file also in the error path [coverity scan]

parent 52e2e52d
Showing with 1 addition and 0 deletions
+1 -0
......@@ -258,6 +258,7 @@ int write_lockfile(const char *lockfilename, const char *origfilename, bool modi
if (wroteamt < lockdatalen) {
statusline(MILD, _("Error writing lock file %s: %s"),
lockfilename, ferror(filestream));
fclose(filestream);
goto free_the_data;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment