diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2019-07-19 17:50:00 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2019-07-19 17:50:00 +0300 |
commit | c3fd5f7e76343c899747ec58ae703540e7e9e69a (patch) | |
tree | 3d762ee4ec98ab73cd83368427c87c4dc45f1ce0 | |
parent | 2187586207e1465d289ae64cedc829719a048a39 (diff) |
Core: fixed memory leak on error, missed in c3f60d618c17.
Found by Coverity (CID 1451664).
-rw-r--r-- | src/core/ngx_hash.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/ngx_hash.c b/src/core/ngx_hash.c index d684e7057..d9c157c1d 100644 --- a/src/core/ngx_hash.c +++ b/src/core/ngx_hash.c @@ -358,6 +358,7 @@ found: "could not build %s, you should " "increase %s_max_size: %i", hinit->name, hinit->name, hinit->max_size); + ngx_free(test); return NGX_ERROR; } |