summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2012-11-21 19:48:50 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2012-11-21 19:48:50 +0000
commit2214152e80f51d83decc47d1561d69b4651459f1 (patch)
tree8b5e04601bff3c97102b9a2e48610580ab714ed9
parent4e6b7959e6994b0543d899d5fe90288cd67b16cc (diff)
Plug fp leak, from rustyBSD at gmx dot fr.
-rw-r--r--usr.bin/cu/xmodem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cu/xmodem.c b/usr.bin/cu/xmodem.c
index a49aeb37d49..3456e80d953 100644
--- a/usr.bin/cu/xmodem.c
+++ b/usr.bin/cu/xmodem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xmodem.c,v 1.2 2012/07/11 06:39:32 nicm Exp $ */
+/* $OpenBSD: xmodem.c,v 1.3 2012/11/21 19:48:49 nicm Exp $ */
/*
* Copyright (c) 2012 Nicholas Marriott <nicm@openbsd.org>
@@ -173,5 +173,5 @@ out:
sigaction(SIGINT, &oact, NULL);
- return;
+ fclose (f);
}