1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Fix another memory leak in regexp compiler (BZ #17069)

This commit is contained in:
Andreas Schwab
2014-06-20 12:41:27 +02:00
parent 7892406e35
commit aa6ec754f3
4 changed files with 15 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* Test regcomp not leaking memory on invalid repetition operator
/* Test regcomp not leaking memory on parse errors
Copyright (C) 2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
@ -24,6 +24,6 @@ main (int argc, char **argv)
{
regex_t r;
mtrace ();
regcomp (&r, "[a]\\{-2,}", 0);
regcomp (&r, "[a]\\|[a]\\{-2,}", 0);
regfree (&r);
}