git.annexia.org
/
miniexpect.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcf7360
)
tests: test-multi-match.c: Fix memory leaks in test
author
Richard W.M. Jones
<rjones@redhat.com>
Tue, 26 Jul 2022 08:56:03 +0000
(09:56 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Tue, 26 Jul 2022 08:56:03 +0000
(09:56 +0100)
test-multi-match.c
patch
|
blob
|
history
diff --git
a/test-multi-match.c
b/test-multi-match.c
index
a133d06
..
dd36c72
100644
(file)
--- 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);
}