aboutsummaryrefslogtreecommitdiffstats
path: root/src/input/curl_input_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-09-16 21:12:46 +0200
committerMax Kellermann <max@duempel.org>2011-09-16 21:13:25 +0200
commit6f655eb9b90e0855112038c0779eb61194cb7ef6 (patch)
tree0b66b721d1fd453cee233b9170a5fe7aaca65106 /src/input/curl_input_plugin.c
parent65dfd90141e51d896e0988fe3c6afd3d3f9d7460 (diff)
downloadmpd-6f655eb9b90e0855112038c0779eb61194cb7ef6.tar.gz
mpd-6f655eb9b90e0855112038c0779eb61194cb7ef6.tar.xz
mpd-6f655eb9b90e0855112038c0779eb61194cb7ef6.zip
input/{soup,curl}: free unused postponed_error
Fix memory leak.
Diffstat (limited to 'src/input/curl_input_plugin.c')
-rw-r--r--src/input/curl_input_plugin.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/input/curl_input_plugin.c b/src/input/curl_input_plugin.c
index cbee2f7a3..824fc9bad 100644
--- a/src/input/curl_input_plugin.c
+++ b/src/input/curl_input_plugin.c
@@ -766,6 +766,9 @@ input_curl_free(struct input_curl *c)
g_mutex_free(c->mutex);
g_cond_free(c->cond);
+ if (c->postponed_error != NULL)
+ g_error_free(c->postponed_error);
+
g_free(c->url);
input_stream_deinit(&c->base);
g_free(c);
@@ -1289,6 +1292,8 @@ input_curl_open(const char *url, GError **error_r)
icy_clear(&c->icy_metadata);
c->tag = NULL;
+ c->postponed_error = NULL;
+
#if LIBCURL_VERSION_NUM >= 0x071200
c->paused = false;
#endif