[Winbash-checkins] CVS: winbash/lib/glob glob.c,1.1.1.1,1.2
Brought to you by:
enricobrunetta,
xks
From: Enrico B. <enr...@us...> - 2002-03-09 16:05:46
|
Update of /cvsroot/winbash/winbash/lib/glob In directory usw-pr-cvs1:/tmp/cvs-serv14844/lib/glob Modified Files: glob.c Log Message: Applied 1.14.3 diffs from GNU bash Index: glob.c =================================================================== RCS file: /cvsroot/winbash/winbash/lib/glob/glob.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- glob.c 9 Mar 2002 03:39:13 -0000 1.1.1.1 +++ glob.c 9 Mar 2002 16:05:43 -0000 1.2 @@ -436,10 +436,14 @@ if (directories == NULL) goto memory_error; else if (directories == (char **)&glob_error_return) - return ((char **) &glob_error_return); + { + free ((char *)result); + return ((char **) &glob_error_return); + } else if (*directories == NULL) { free ((char *) directories); + free ((char *) result); return ((char **) &glob_error_return); } |