Welcome! Log In Create A New Profile

Advanced

[njs] Tests: freeing pcre structs to silence leak-sanitizer.

Dmitry Volyntsev
April 18, 2019 12:18PM
details: https://hg.nginx.org/njs/rev/fca54d073408
branches:
changeset: 908:fca54d073408
user: Dmitry Volyntsev <xeioex@nginx.com>
date: Thu Apr 18 19:17:22 2019 +0300
description:
Tests: freeing pcre structs to silence leak-sanitizer.

diffstat:

njs/test/njs_unit_test.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)

diffs (18 lines):

diff -r 7d2d28095c42 -r fca54d073408 njs/test/njs_unit_test.c
--- a/njs/test/njs_unit_test.c Wed Apr 17 18:00:56 2019 +0300
+++ b/njs/test/njs_unit_test.c Thu Apr 18 19:17:22 2019 +0300
@@ -12907,6 +12907,14 @@ njs_regexp_optional_test(nxt_bool_t disa
nxt_printf("njs unicode regexp tests skipped, libpcre fails\n");
}

+ if (re1 != NULL) {
+ pcre_free(re1);
+ }
+
+ if (re2 != NULL) {
+ pcre_free(re2);
+ }
+
return NXT_OK;
}

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

[njs] Tests: freeing pcre structs to silence leak-sanitizer.

Dmitry Volyntsev 337 April 18, 2019 12:18PM



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

Online Users

Guests: 203
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