diff --git a/src/httpd_streaming.c b/src/httpd_streaming.c index 8fc31abb..ab6f2c69 100644 --- a/src/httpd_streaming.c +++ b/src/httpd_streaming.c @@ -148,6 +148,10 @@ streaming_close_cb(struct evhttp_connection *evcon, void *arg) if (session->require_icy) --streaming_icy_clients; + /* Possible libevent bug; ownership of evhttp_request with libevent + * Workaround to force mem cleanup, prefered over evhttp_request_free() + */ + evhttp_send_reply_end(session->req); free(session); if (!streaming_sessions)