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