tweaks: close a file also in the error path [coverity scan]
parent
52e2e52db3
commit
eed0090e32
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue