diff options
author | zinovik <zinovik@cvs.openbsd.org> | 2010-03-30 17:42:51 +0000 |
---|---|---|
committer | zinovik <zinovik@cvs.openbsd.org> | 2010-03-30 17:42:51 +0000 |
commit | 28e9c38c6269108ae52ef145a67347557c5f4df6 (patch) | |
tree | fd0485fbc7dd70f8895d770e9cc576bf8805baea /libexec/ld.so/ldconfig | |
parent | 37bd90a8ebd670235ac9dad69532d88d2fea13a9 (diff) |
several missing closedir() calls
regress test run fine with this changes
ok deraadt@, drahn@
Diffstat (limited to 'libexec/ld.so/ldconfig')
-rw-r--r-- | libexec/ld.so/ldconfig/ldconfig.c | 3 | ||||
-rw-r--r-- | libexec/ld.so/ldconfig/prebind.c | 3 | ||||
-rw-r--r-- | libexec/ld.so/ldconfig/prebind_delete.c | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/libexec/ld.so/ldconfig/ldconfig.c b/libexec/ld.so/ldconfig/ldconfig.c index 6617937cbdb..bcd9ce0059a 100644 --- a/libexec/ld.so/ldconfig/ldconfig.c +++ b/libexec/ld.so/ldconfig/ldconfig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ldconfig.c,v 1.26 2009/08/19 19:38:17 bluhm Exp $ */ +/* $OpenBSD: ldconfig.c,v 1.27 2010/03/30 17:42:50 zinovik Exp $ */ /* * Copyright (c) 1993,1995 Paul Kranenburg @@ -247,6 +247,7 @@ dodir(char *dir, int silent) ndewey = getdewey(dewey, cp + 4); enter(dir, dp->d_name, name, dewey, ndewey); } + closedir(dd); return 0; } diff --git a/libexec/ld.so/ldconfig/prebind.c b/libexec/ld.so/ldconfig/prebind.c index b65368f9a92..f9c974fd69e 100644 --- a/libexec/ld.so/ldconfig/prebind.c +++ b/libexec/ld.so/ldconfig/prebind.c @@ -1,4 +1,4 @@ -/* $OpenBSD: prebind.c,v 1.11 2009/05/30 23:37:03 drahn Exp $ */ +/* $OpenBSD: prebind.c,v 1.12 2010/03/30 17:42:50 zinovik Exp $ */ /* * Copyright (c) 2006 Dale Rahn <drahn@dalerahn.com> * @@ -281,6 +281,7 @@ load_dir(char *name) ; } } + closedir(dirp); } /* diff --git a/libexec/ld.so/ldconfig/prebind_delete.c b/libexec/ld.so/ldconfig/prebind_delete.c index 1edec984644..c0296f44b0b 100644 --- a/libexec/ld.so/ldconfig/prebind_delete.c +++ b/libexec/ld.so/ldconfig/prebind_delete.c @@ -1,4 +1,4 @@ -/* $OpenBSD: prebind_delete.c,v 1.9 2008/06/08 02:40:49 drahn Exp $ */ +/* $OpenBSD: prebind_delete.c,v 1.10 2010/03/30 17:42:50 zinovik Exp $ */ /* * Copyright (c) 2006 Dale Rahn <drahn@dalerahn.com> @@ -118,6 +118,7 @@ strip_dir(char *dir) ; } } + closedir(dirp); return ret; } |