2000-07-13  Andreas Schwab  <schwab@suse.de>

	* sysdeps/generic/glob.c (glob): Fix memory leak.
	[SHELL]: Remove reference to undefined variable `files'.
	Fixes PR libc/1782.
This commit is contained in:
Andreas Jaeger 2000-07-13 12:12:01 +00:00
parent e940b742de
commit 1338451ba2
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2000-07-13 Andreas Schwab <schwab@suse.de>
* sysdeps/generic/glob.c (glob): Fix memory leak.
[SHELL]: Remove reference to undefined variable `files'.
Fixes PR libc/1782.
2000-07-13 Andreas Jaeger <aj@suse.de> 2000-07-13 Andreas Jaeger <aj@suse.de>
* sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling

View File

@ -896,7 +896,6 @@ glob (pattern, flags, errfunc, pglob)
if (interrupt_state) if (interrupt_state)
{ {
globfree (&dirs); globfree (&dirs);
globfree (&files);
return GLOB_ABORTED; return GLOB_ABORTED;
} }
} }
@ -1007,7 +1006,10 @@ glob (pattern, flags, errfunc, pglob)
pglob->gl_pathv = new_pathv; pglob->gl_pathv = new_pathv;
} }
else else
return GLOB_NOMATCH; {
globfree (&dirs);
return GLOB_NOMATCH;
}
} }
globfree (&dirs); globfree (&dirs);