summaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index a0019cf..864bcbb 100644
--- a/src/util.c
+++ b/src/util.c
@@ -299,6 +299,7 @@ lilv_copy_file(const char* src, const char* dst)
FILE* out = fopen(dst, "w");
if (!out) {
+ fclose(in);
return errno;
}