Ticket #1916: ngx_http_auth_request_module.c.patch
| File ngx_http_auth_request_module.c.patch, 649 bytes (added by , 7 years ago) |
|---|
-
ngx_http_auth_request_module.c
old new 180 180 181 181 ps = ngx_palloc(r->pool, sizeof(ngx_http_post_subrequest_t)); 182 182 if (ps == NULL) { 183 ngx_pfree(ctx); /* release memory previously allocated to ctx */ 183 184 return NGX_ERROR; 184 185 } 185 186 … … 200 201 201 202 sr->request_body = ngx_pcalloc(r->pool, sizeof(ngx_http_request_body_t)); 202 203 if (sr->request_body == NULL) { 204 ngx_pfree(ps); /* release memory allocated to ps */ 205 ngx_pfree(ctx); /* release memory allocated to ctx */ 203 206 return NGX_ERROR; 204 207 } 205 208
