From 28e9c38c6269108ae52ef145a67347557c5f4df6 Mon Sep 17 00:00:00 2001 From: zinovik Date: Tue, 30 Mar 2010 17:42:51 +0000 Subject: several missing closedir() calls regress test run fine with this changes ok deraadt@, drahn@ --- libexec/ld.so/ldconfig/ldconfig.c | 3 ++- libexec/ld.so/ldconfig/prebind.c | 3 ++- libexec/ld.so/ldconfig/prebind_delete.c | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'libexec') 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 * @@ -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 @@ -118,6 +118,7 @@ strip_dir(char *dir) ; } } + closedir(dirp); return ret; } -- cgit v1.2.3