summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libexec/ld.so/ldconfig/prebind_delete.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/ld.so/ldconfig/prebind_delete.c b/libexec/ld.so/ldconfig/prebind_delete.c
index 2e9fc6779e7..1edec984644 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.8 2006/07/28 21:38:05 drahn Exp $ */
+/* $OpenBSD: prebind_delete.c,v 1.9 2008/06/08 02:40:49 drahn Exp $ */
/*
* Copyright (c) 2006 Dale Rahn <drahn@dalerahn.com>
@@ -258,6 +258,7 @@ prebind_newfile(int infd, char *name, struct stat *st, off_t orig_size)
}
}
free(buf);
+ close (infd);
/* now back track, and delete the header */
if (prebind_remove_load_section(outfd, newname) == -1)