summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/vorbis/vorbis.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/vorbis/vorbis.c b/plugins/vorbis/vorbis.c
index 37ca2263..90eb7c01 100644
--- a/plugins/vorbis/vorbis.c
+++ b/plugins/vorbis/vorbis.c
@@ -593,13 +593,15 @@ cvorbis_write_metadata (DB_playItem_t *it) {
err = 0;
error:
+ if (fp) {
+ fclose (fp);
+ }
if (out) {
fclose (out);
}
if (state) {
vcedit_clear (state);
}
-
while (preserved_fields) {
struct field *next = preserved_fields->next;
free (preserved_fields);