Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2019-07-19 17:50:00 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2019-07-19 17:50:00 +0300
commitc3fd5f7e76343c899747ec58ae703540e7e9e69a (patch)
tree3d762ee4ec98ab73cd83368427c87c4dc45f1ce0
parent2187586207e1465d289ae64cedc829719a048a39 (diff)
Core: fixed memory leak on error, missed in c3f60d618c17.
Found by Coverity (CID 1451664).
-rw-r--r--src/core/ngx_hash.c1
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;
}