diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/basic/util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/util.c b/src/basic/util.c index e4e302ae3d..c88cd1d38a 100644 --- a/src/basic/util.c +++ b/src/basic/util.c @@ -2535,6 +2535,7 @@ int fopen_temporary(const char *path, FILE **_f, char **_temp_path) { if (!f) { unlink(t); free(t); + safe_close(fd); return -errno; } |