summaryrefslogtreecommitdiffstats
path: root/osdep-linux.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-02-02 15:46:36 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-02-02 15:46:36 +0000
commit5a7b7aaa1ca122fb492dbf0212627aed4ca3c074 (patch)
treeca480275833bd8d73c693a6c108d265dbe73e277 /osdep-linux.c
parentdd4e160d71e366fa6a8453151175a3a2102477a8 (diff)
Don't leak fd.
Diffstat (limited to 'osdep-linux.c')
-rw-r--r--osdep-linux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/osdep-linux.c b/osdep-linux.c
index 986b8d8e..71085aa5 100644
--- a/osdep-linux.c
+++ b/osdep-linux.c
@@ -1,4 +1,4 @@
-/* $Id: osdep-linux.c,v 1.2 2009-01-26 22:57:19 nicm Exp $ */
+/* $Id: osdep-linux.c,v 1.3 2009-02-02 15:46:36 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -56,6 +56,7 @@ get_argv0(int fd, unused char *tty)
if (buf != NULL)
buf[len] = '\0';
+ fclose(f);
return (buf);
}