diff options
author | dfr <dfr@FreeBSD.org> | 1995-01-27 13:51:18 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1995-01-27 13:51:18 +0000 |
commit | b5c6599aa47b119e1aaac3b629eb0e9d109696be (patch) | |
tree | 5986ac07eacadb29138ca6a2d36d88439ac6212a /lib/libc/gen/closedir.c | |
parent | 10b39986dbddbee6ce01e3a1116d709675a9ad9a (diff) | |
download | FreeBSD-src-b5c6599aa47b119e1aaac3b629eb0e9d109696be.zip FreeBSD-src-b5c6599aa47b119e1aaac3b629eb0e9d109696be.tar.gz |
Reclaim memory used for telldir cookies on closedir.
Diffstat (limited to 'lib/libc/gen/closedir.c')
-rw-r--r-- | lib/libc/gen/closedir.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/gen/closedir.c b/lib/libc/gen/closedir.c index d3fc00b..7e595e5 100644 --- a/lib/libc/gen/closedir.c +++ b/lib/libc/gen/closedir.c @@ -55,5 +55,6 @@ closedir(dirp) dirp->dd_loc = 0; (void)free((void *)dirp->dd_buf); (void)free((void *)dirp); + _reclaim_telldir(dirp); return(close(fd)); } |