Welcome! Log In Create A New Profile

Advanced

[nginx] Core: fixed memory leak on error, missed in c3f60d618c17.

Maxim Dounin
July 19, 2019 11:18AM
details: https://hg.nginx.org/nginx/rev/eb9c7fb796d5
branches:
changeset: 7541:eb9c7fb796d5
user: Maxim Dounin <mdounin@mdounin.ru>
date: Fri Jul 19 17:50:00 2019 +0300
description:
Core: fixed memory leak on error, missed in c3f60d618c17.

Found by Coverity (CID 1451664).

diffstat:

src/core/ngx_hash.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff --git a/src/core/ngx_hash.c b/src/core/ngx_hash.c
--- 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;
}

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Core: fixed memory leak on error, missed in c3f60d618c17.

Maxim Dounin 283 July 19, 2019 11:18AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 218
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready