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:
Julien BLACHE 2010-05-08 12:05:52 +02:00
parent c2977fd61d
commit 6de5c64670

View File

@ -700,16 +700,13 @@ do_pairing(struct remote_info *ri)
{
DPRINTF(E_WARN, L_REMOTE, "Could not make pairing request\n");
goto make_request_fail;
goto request_fail;
}
ri->evcon = evcon;
return;
make_request_fail:
evhttp_request_free(req);
request_fail:
evhttp_connection_free(evcon);