aboutsummaryrefslogtreecommitdiffstats
path: root/src/archive/zip_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-12-15 19:56:38 +0100
committerMax Kellermann <max@duempel.org>2009-12-15 19:57:00 +0100
commit9179f108a540dcd27dafeb015778cc4dd873dfe5 (patch)
tree0452929a038ea1b0e05120a9db4a10ad1a4b4c37 /src/archive/zip_plugin.c
parent3411f6cffdcf3c72e7cee3a263c40414dfef956e (diff)
downloadmpd-9179f108a540dcd27dafeb015778cc4dd873dfe5.tar.gz
mpd-9179f108a540dcd27dafeb015778cc4dd873dfe5.tar.xz
mpd-9179f108a540dcd27dafeb015778cc4dd873dfe5.zip
iso, zip: fixed memory leak in destructor
Free the "context" pointer in the method archive_plugin.close().
Diffstat (limited to '')
-rw-r--r--src/archive/zip_plugin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/archive/zip_plugin.c b/src/archive/zip_plugin.c
index 2f08b3812..243d46418 100644
--- a/src/archive/zip_plugin.c
+++ b/src/archive/zip_plugin.c
@@ -99,7 +99,8 @@ zip_close(struct archive_file *file)
}
//close archive
zzip_dir_close (context->dir);
- context->dir = NULL;
+
+ g_free(context);
}
/* single archive handling */