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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user