diff options
Diffstat (limited to 'newlib/libc/posix')
-rw-r--r-- | newlib/libc/posix/opendir.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/newlib/libc/posix/opendir.c b/newlib/libc/posix/opendir.c index c9a97db..ca764e1 100644 --- a/newlib/libc/posix/opendir.c +++ b/newlib/libc/posix/opendir.c @@ -74,6 +74,7 @@ _DEFUN(opendir, (name), dirp->dd_len = 512; if (dirp->dd_buf == NULL) { + free (dirp); close (fd); return NULL; } |