aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-10-27 18:23:53 +0000
committerUlrich Drepper <drepper@redhat.com>2004-10-27 18:23:53 +0000
commit778cddad1775602453d3a8ca5797e39f2632de66 (patch)
tree26079811bff23132e2a8923bc90536c961242b1e /sysdeps
parent866a1efa766a9e9b57fb6ef92d10952447c05bb2 (diff)
downloadglibc-778cddad1775602453d3a8ca5797e39f2632de66.zip
glibc-778cddad1775602453d3a8ca5797e39f2632de66.tar.gz
glibc-778cddad1775602453d3a8ca5797e39f2632de66.tar.bz2
Update.
2004-10-27 Jakub Jelinek <jakub@redhat.com> * sysdeps/generic/glob.c (globfree): Clear gl_pathv after freeing it. * posix/Makefile: Add rules to build and run bug-glob2 test. * posix/bug-glob2.c: New test.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/generic/glob.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/generic/glob.c b/sysdeps/generic/glob.c
index 658599e..c0e76b3 100644
--- a/sysdeps/generic/glob.c
+++ b/sysdeps/generic/glob.c
@@ -1135,6 +1135,7 @@ globfree (pglob)
if (pglob->gl_pathv[pglob->gl_offs + i] != NULL)
free ((__ptr_t) pglob->gl_pathv[pglob->gl_offs + i]);
free ((__ptr_t) pglob->gl_pathv);
+ pglob->gl_pathv = NULL;
}
}
#if defined _LIBC && !defined globfree