Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/ldconfig Plug a file descriptor leak.



details:   https://anonhg.NetBSD.org/src/rev/c0e6644c11c3
branches:  trunk
changeset: 471720:c0e6644c11c3
user:      agc <agc%NetBSD.org@localhost>
date:      Fri Apr 09 07:29:43 1999 +0000

description:
Plug a file descriptor leak.

diffstat:

 sbin/ldconfig/ldconfig.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r b71ad9b389d3 -r c0e6644c11c3 sbin/ldconfig/ldconfig.c
--- a/sbin/ldconfig/ldconfig.c  Fri Apr 09 04:26:27 1999 +0000
+++ b/sbin/ldconfig/ldconfig.c  Fri Apr 09 07:29:43 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ldconfig.c,v 1.24 1999/04/08 19:19:57 drochner Exp $   */
+/*     $NetBSD: ldconfig.c,v 1.25 1999/04/09 07:29:43 agc Exp $        */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -266,6 +266,8 @@
                enter(dir, dp->d_name, name, dewey, ndewey);
        }
 
+       (void) closedir(dd);
+
        return (0);
 }
 



Home | Main Index | Thread Index | Old Index