summaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-09-18 15:13:52 -0400
committerDavid Robillard <d@drobilla.net>2016-09-18 15:13:52 -0400
commit7ce645cfe6fffef55eb43e1e2b63e4ac41c8581c (patch)
treedd5b03025c8984da6b52f5d1653ac140bf81c7e1 /src/util.c
parent7a68f1e59abd84574d8b8ccf6289b6c01bf428c6 (diff)
downloadlilv-7ce645cfe6fffef55eb43e1e2b63e4ac41c8581c.tar.gz
lilv-7ce645cfe6fffef55eb43e1e2b63e4ac41c8581c.tar.bz2
lilv-7ce645cfe6fffef55eb43e1e2b63e4ac41c8581c.zip
Fix memory, file, and library leaks
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;
}