From 6de5c646702e5d8840a37212310a70a9b8b6348c Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Sat, 8 May 2010 12:05:52 +0200 Subject: [PATCH] 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. --- src/remote_pairing.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/remote_pairing.c b/src/remote_pairing.c index 4b753068..f7eb2c14 100644 --- a/src/remote_pairing.c +++ b/src/remote_pairing.c @@ -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);