]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(__os_dirlist): Close directory if out of memory.
authorUlrich Drepper <drepper@redhat.com>
Wed, 22 Mar 2000 18:16:51 +0000 (18:16 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 22 Mar 2000 18:16:51 +0000 (18:16 +0000)
db2/os/os_dir.c

index 14a10ad23f7379d5154a8cd4d12f2f8ceb5837d8..05e2e39c6333537377f50a6e54d57ccd94c357b1 100644 (file)
@@ -76,6 +76,7 @@ __os_dirlist(dir, namesp, cntp)
 
 nomem: if (names != NULL)
                __os_dirfree(names, cnt);
+       (void)closedir(dirp);
        return (ENOMEM);
 }