From 3540d66b669af54900b2e4bfc0ab82960e84a471 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Fri, 12 Nov 2010 03:51:28 -0500 Subject: Fix memory leak in fnmatch --- posix/tst-fnmatch.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'posix/tst-fnmatch.c') 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 #include #include +#include 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 -- cgit 1.4.1