Ticket #1917: ngx_hash.c.patch
| File ngx_hash.c.patch, 736 bytes (added by , 7 years ago) |
|---|
-
ngx_hash.c
old new 696 696 ha->dns_wc_head_hash = ngx_pcalloc(ha->temp_pool, 697 697 sizeof(ngx_array_t) * ha->hsize); 698 698 if (ha->dns_wc_head_hash == NULL) { 699 ngx_pfree(ha->keys_hash); /* release previous memory allocation */ 699 700 return NGX_ERROR; 700 701 } 701 702 702 703 ha->dns_wc_tail_hash = ngx_pcalloc(ha->temp_pool, 703 704 sizeof(ngx_array_t) * ha->hsize); 704 705 if (ha->dns_wc_tail_hash == NULL) { 706 ngx_pfree(ha->dns_wc_tail_hash); /* release tail_hash */ 707 ngx_pfree(ha->keys_hash); /* release keys_hash */ 705 708 return NGX_ERROR; 706 709 } 707 710
