mirror of
https://github.com/nginx/nginx.git
synced 2025-06-11 04:12:40 +08:00
fix memory leak,
found by Coverity's Scan
This commit is contained in:
parent
66a874beb2
commit
cbf72c1e61
@ -163,6 +163,7 @@ ngx_palloc(ngx_pool_t *pool, size_t size)
|
||||
|
||||
large = ngx_palloc(pool, sizeof(ngx_pool_large_t));
|
||||
if (large == NULL) {
|
||||
ngx_free(p);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user