summaryrefslogtreecommitdiffstats
path: root/abs/extra/most/most-leak-fd.patch
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/most/most-leak-fd.patch')
-rw-r--r--abs/extra/most/most-leak-fd.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/abs/extra/most/most-leak-fd.patch b/abs/extra/most/most-leak-fd.patch
new file mode 100644
index 0000000..c8cd2af
--- /dev/null
+++ b/abs/extra/most/most-leak-fd.patch
@@ -0,0 +1,14 @@
+--- most-5.0.0a.orig/src/most.c 2007-06-03 00:03:59.000000000 -0400
++++ most-5.0.0a/src/most.c 2010-12-31 04:42:08.000000000 -0500
+@@ -321,9 +321,11 @@
+ {
+ fprintf (stderr, "fwrite returned %d, errno = %d\n",
+ m, errno);
++ (void) fclose (fp);
+ exit (1);
+ }
+ }
++ (void) fclose (fp);
+ }
+
+ void most_initialize_most (void)