shrpx: Fix resource leak

This commit is contained in:
Tatsuhiro Tsujikawa 2013-01-25 21:26:03 +09:00
parent cbb819aed7
commit 5774f8110d
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
}