From bc7f2694f006e97e9c97dc2a25c968a90fbe7340 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 26 Jul 2022 09:56:03 +0100 Subject: [PATCH] tests: test-multi-match.c: Fix memory leaks in test --- test-multi-match.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test-multi-match.c b/test-multi-match.c index a133d06..dd36c72 100644 --- a/test-multi-match.c +++ b/test-multi-match.c @@ -92,5 +92,12 @@ main (int argc, char *argv[]) exit (EXIT_FAILURE); } + pcre2_code_free (multi_re); + pcre2_code_free (match_re); + pcre2_code_free (ing_re); + pcre2_code_free (str_re); + pcre2_code_free (s_re); + pcre2_match_data_free (match_data); + exit (EXIT_SUCCESS); } -- 1.8.3.1