aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-05-18 20:57:57 +0200
committerMax Kellermann <max@duempel.org>2010-05-18 20:57:57 +0200
commite98bd55cbf850f17fa3b7339c659791834e9aaa8 (patch)
tree5f7efffe1f47288d15708e57c8080eb7e3afbdc3
parenta1a03deed278a865bdc7d3394cda838543c8b03c (diff)
downloadmpd-e98bd55cbf850f17fa3b7339c659791834e9aaa8.tar.gz
mpd-e98bd55cbf850f17fa3b7339c659791834e9aaa8.tar.xz
mpd-e98bd55cbf850f17fa3b7339c659791834e9aaa8.zip
input/mms: fix memory leak in error handler
Diffstat (limited to '')
-rw-r--r--NEWS2
-rw-r--r--src/input/mms_input_plugin.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index b69bd18f1..ab0aa2109 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,6 @@
ver 0.15.10 (2010/??/??)
+* input:
+ - mms: fix memory leak in error handler
* decoders:
- mad: properly calculate ID3 size without libid3tag
diff --git a/src/input/mms_input_plugin.c b/src/input/mms_input_plugin.c
index 2a3c53776..eb3a5cedb 100644
--- a/src/input/mms_input_plugin.c
+++ b/src/input/mms_input_plugin.c
@@ -49,6 +49,7 @@ input_mms_open(struct input_stream *is, const char *url)
m = g_new(struct input_mms, 1);
m->mms = mmsx_connect(NULL, NULL, url, 128 * 1024);
if (m->mms == NULL) {
+ g_free(m);
g_warning("mmsx_connect() failed");
return false;
}