diff --git a/src/httpd_daap.c b/src/httpd_daap.c index c7edf2f2..3bb23f2f 100644 --- a/src/httpd_daap.c +++ b/src/httpd_daap.c @@ -2875,7 +2875,10 @@ daap_deinit(void) update_requests = ur->next; if (ur->req->evcon) - evhttp_connection_set_closecb(ur->req->evcon, NULL, NULL); + { + evhttp_connection_set_closecb(ur->req->evcon, NULL, NULL); + evhttp_connection_free(ur->req->evcon); + } free(ur); } diff --git a/src/httpd_dacp.c b/src/httpd_dacp.c index dad7c26b..39995652 100644 --- a/src/httpd_dacp.c +++ b/src/httpd_dacp.c @@ -1705,7 +1705,10 @@ dacp_deinit(void) update_requests = ur->next; if (ur->req->evcon) - evhttp_connection_set_closecb(ur->req->evcon, NULL, NULL); + { + evhttp_connection_set_closecb(ur->req->evcon, NULL, NULL); + evhttp_connection_free(ur->req->evcon); + } free(ur); }