mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-26 04:26:14 -05:00
[daap/dacp] Fix for memleak when client hangs up
This commit is contained in:
@@ -326,6 +326,7 @@ update_fail_cb(struct evhttp_connection *evcon, void *arg)
|
|||||||
if (evc)
|
if (evc)
|
||||||
evhttp_connection_set_closecb(evc, NULL, NULL);
|
evhttp_connection_set_closecb(evc, NULL, NULL);
|
||||||
|
|
||||||
|
evhttp_request_free(ur->req);
|
||||||
update_remove(ur);
|
update_remove(ur);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -840,6 +840,7 @@ update_fail_cb(struct evhttp_connection *evcon, void *arg)
|
|||||||
p->next = ur->next;
|
p->next = ur->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
evhttp_request_free(ur->req);
|
||||||
free(ur);
|
free(ur);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user