From 2d23ae374133febecdb5fc265eb86fd9cf1b9f96 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 1 Mar 2013 00:07:00 +0900 Subject: [PATCH] shrpx: Fix missing delete --- src/shrpx_spdy_upstream.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shrpx_spdy_upstream.cc b/src/shrpx_spdy_upstream.cc index f41d636b..08afc8c6 100644 --- a/src/shrpx_spdy_upstream.cc +++ b/src/shrpx_spdy_upstream.cc @@ -572,7 +572,7 @@ void spdy_downstream_eventcb(bufferevent *bev, short events, void *ptr) // If stream was not closed, then we set MSG_COMPLETE and let // on_stream_close_callback delete downstream. if(upstream->error_reply(downstream, 502) != 0) { - upstream->get_client_handler(); + delete upstream->get_client_handler(); return; } downstream->set_response_state(Downstream::MSG_COMPLETE);