diff options
author | Andreas Schwab <schwab@redhat.com> | 2010-11-12 03:51:28 -0500 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2010-11-12 03:51:28 -0500 |
commit | 3540d66b669af54900b2e4bfc0ab82960e84a471 (patch) | |
tree | 2798b4dfa450db317e823ab8af0c2cdb2f340fa2 /posix/tst-fnmatch.c | |
parent | 13b695749acf88139a2ce1ed2c949e0e64300a9b (diff) | |
download | glibc-3540d66b669af54900b2e4bfc0ab82960e84a471.tar.gz |
Fix memory leak in fnmatch
Diffstat (limited to 'posix/tst-fnmatch.c')
-rw-r--r-- | posix/tst-fnmatch.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/posix/tst-fnmatch.c b/posix/tst-fnmatch.c index 25471f8e41..7e1f73a975 100644 --- a/posix/tst-fnmatch.c +++ b/posix/tst-fnmatch.c @@ -1,5 +1,5 @@ /* Tests for fnmatch function. - Copyright (C) 2000, 2001 Free Software Foundation, Inc. + Copyright (C) 2000, 2001, 2010 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -25,6 +25,7 @@ #include <stdlib.h> #include <string.h> #include <sys/types.h> +#include <mcheck.h> static char *next_input (char **line, int first, int last); @@ -46,6 +47,8 @@ main (void) size_t escpatternlen = 0; int nr = 0; + mtrace (); + /* Read lines from stdin with the following format: locale input-string match-string flags result |