aboutsummaryrefslogtreecommitdiff
path: root/irc/xchat/files/patch-xc284-fix-scrollbfdleak
blob: 32963cbf10b07eaa42293202d3de512f483b92d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#
# Scrollback shrinking code forgets to close().
#
--- src/common/text.c	2007-06-13 19:59:56.000000000 +1000
+++ src/common/text.c	2007-11-02 23:52:57.000000000 +1100
@@ -141,6 +146,7 @@
 	}
 
 	*len = st.st_size;
+	close (fh);
 	return buf;
 }