]> granicus.if.org Git - libevent/commitdiff
clean up terminate_chunked test
authorNiels Provos <provos@gmail.com>
Sun, 14 Feb 2010 00:59:37 +0000 (16:59 -0800)
committerNiels Provos <provos@gmail.com>
Sun, 14 Feb 2010 00:59:37 +0000 (16:59 -0800)
test/regress_http.c

index 2b25100415fd5d9151af7911faa4cac0de328865..3fd2d6520711d602c785fcc9cb37766d2e8a9e0d 100644 (file)
@@ -2536,6 +2536,7 @@ terminate_chunked_trickle_cb(evutil_socket_t fd, short events, void *arg)
                test_ok = 1;
                evhttp_request_free(state->req);
                event_loopexit(NULL);
+               return;
        }
 
        evbuffer_add_printf(evb, "%p", evb);
@@ -2553,9 +2554,6 @@ terminate_chunked_cb(struct evhttp_request *req, void *arg)
        struct terminate_state *state = arg;
        struct timeval tv;
 
-       /* we need to hold on to this */
-       evhttp_request_own(req);
-
        state->req = req;
 
        evhttp_send_reply_start(req, HTTP_OK, "OK");