# HG changeset patch # User Valentin Bartenev # Date 1398809781 -14400 # Node ID 5cf537731218bc364d02f1200ce2d8c4aab588f9 # Parent 0cbefdcf82a66490fb5554f16bca1d20937e375e SPDY: fixed one case of improper memory allocation error handling. Now ngx_http_spdy_construct_request_line() doesn't try to finalize request in case of failed memory allocation. diff --git a/src/http/ngx_http_spdy.c b/src/http/ngx_http_spdy.c --- a/src/http/ngx_http_spdy.c +++ b/src/http/ngx_http_spdy.c @@ -2900,7 +2900,8 @@ ngx_http_spdy_construct_request_line(ngx p = ngx_pnalloc(r->pool, r->request_line.len + 1); if (p == NULL) { - ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); + ngx_http_spdy_close_stream(r->spdy_stream, + NGX_HTTP_INTERNAL_SERVER_ERROR); return NGX_ERROR; }