From c3fd5f7e76343c899747ec58ae703540e7e9e69a Mon Sep 17 00:00:00 2001 From: Maxim Dounin Date: Fri, 19 Jul 2019 17:50:00 +0300 Subject: [PATCH] Core: fixed memory leak on error, missed in c3f60d618c17. Found by Coverity (CID 1451664). --- src/core/ngx_hash.c | 1 + 1 file changed, 1 insertion(+) 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; }