fix a memory leak in win32/dirent.c

Original commit message from CVS:
fix a memory leak in win32/dirent.c
This commit is contained in:
Steve Lhomme 2004-09-19 07:58:13 +00:00
parent 72898e036f
commit d2f7218664
3 changed files with 12 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2004-09-19 Steve Lhomme <steve.lhomme@free.fr>
* win32/dirent.c:
fix a memory leak
2004-09-10 Thomas Vander Stichele <thomas at apestaart dot org>
* configure.ac:

2
common

@ -1 +1 @@
Subproject commit 5ec931d243c53ddda5b2cbb9a2c21ce89747bcb4
Subproject commit ded6dc5186cb7f8c64cb06a8591b9f787122c6f1

View file

@ -9,6 +9,9 @@
* Significantly revised and rewinddir, seekdir and telldir added by Colin
* Peters <colin@fu.is.saga-u.ac.jp>
*
* Resource leaks fixed by <steve.lhomme@free.fr>
*
*
* $Revision$
* $Author$
* $Date$
@ -205,6 +208,9 @@ _tclosedir (_TDIR * dirp)
rc = _findclose (dirp->dd_handle);
}
if (dirp->dd_dir.d_name)
free (dirp->dd_dir.d_name);
/* Delete the dir structure. */
free (dirp);