aboutsummaryrefslogtreecommitdiffstats
path: root/src/input
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-12-15 19:31:50 +0100
committerMax Kellermann <max@duempel.org>2009-12-15 19:41:00 +0100
commit2234d491b7c1a8cbea0cb4e444fc72c37aec5016 (patch)
tree66d7e0c7bdea48c24201cdbe39abf33da92e7613 /src/input
parent81aa58efa8912f8c042650d82e9c3be155f343bc (diff)
downloadmpd-2234d491b7c1a8cbea0cb4e444fc72c37aec5016.tar.gz
mpd-2234d491b7c1a8cbea0cb4e444fc72c37aec5016.tar.xz
mpd-2234d491b7c1a8cbea0cb4e444fc72c37aec5016.zip
input/archive: close the archive file on error
Fixed memory leak in error handler.
Diffstat (limited to '')
-rw-r--r--src/input/archive_input_plugin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/input/archive_input_plugin.c b/src/input/archive_input_plugin.c
index 6239f4298..8e897f0c2 100644
--- a/src/input/archive_input_plugin.c
+++ b/src/input/archive_input_plugin.c
@@ -66,6 +66,7 @@ input_archive_open(struct input_stream *is, const char *pathname)
if (!opened) {
g_warning("open inarchive file %s failed\n\n",filename);
+ arplug->close(file);
} else {
is->ready = true;
}