[daap/dacp] Fix for memleak when client hangs up

This commit is contained in:
ejurgensen 2020-01-02 23:30:34 +01:00
parent 8d21a66493
commit 4fa7eb98a0
2 changed files with 2 additions and 0 deletions

View File

@ -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);
}

View File

@ -840,6 +840,7 @@ update_fail_cb(struct evhttp_connection *evcon, void *arg)
p->next = ur->next;
}
evhttp_request_free(ur->req);
free(ur);
}