From 5774f8110d127771e9428a27d5ffef2e781e16aa Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 25 Jan 2013 21:26:03 +0900 Subject: [PATCH] shrpx: Fix resource leak --- src/shrpx_https_upstream.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shrpx_https_upstream.cc b/src/shrpx_https_upstream.cc index 868eb5cb..822ce36a 100644 --- a/src/shrpx_https_upstream.cc +++ b/src/shrpx_https_upstream.cc @@ -179,6 +179,7 @@ int htp_hdrs_completecb(http_parser *htp) if(bufferevent_write(upstream->get_client_handler()->get_bev(), reply_100, sizeof(reply_100)-1) != 0) { ULOG(FATAL, upstream) << "bufferevent_write() faild"; + delete dconn; return -1; } }