From 2234d491b7c1a8cbea0cb4e444fc72c37aec5016 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 15 Dec 2009 19:31:50 +0100 Subject: input/archive: close the archive file on error Fixed memory leak in error handler. --- src/input/archive_input_plugin.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/input') 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; } -- cgit v1.2.3