mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-15 00:35:03 -05:00
Do not free evhttp_request after make_request() call
At that point, the request has been added to the connection and will be freed when the connection is freed.
This commit is contained in:
parent
c2977fd61d
commit
6de5c64670
@ -700,16 +700,13 @@ do_pairing(struct remote_info *ri)
|
|||||||
{
|
{
|
||||||
DPRINTF(E_WARN, L_REMOTE, "Could not make pairing request\n");
|
DPRINTF(E_WARN, L_REMOTE, "Could not make pairing request\n");
|
||||||
|
|
||||||
goto make_request_fail;
|
goto request_fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
ri->evcon = evcon;
|
ri->evcon = evcon;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
make_request_fail:
|
|
||||||
evhttp_request_free(req);
|
|
||||||
|
|
||||||
request_fail:
|
request_fail:
|
||||||
evhttp_connection_free(evcon);
|
evhttp_connection_free(evcon);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user