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

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

No related merge requests found
Showing with 1 addition and 0 deletions
+1 -0
...@@ -258,6 +258,7 @@ int write_lockfile(const char *lockfilename, const char *origfilename, bool modi ...@@ -258,6 +258,7 @@ int write_lockfile(const char *lockfilename, const char *origfilename, bool modi
if (wroteamt < lockdatalen) { if (wroteamt < lockdatalen) {
statusline(MILD, _("Error writing lock file %s: %s"), statusline(MILD, _("Error writing lock file %s: %s"),
lockfilename, ferror(filestream)); lockfilename, ferror(filestream));
fclose(filestream);
goto free_the_data; 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