[xchat-gnome/xchat-0-26-3] Bug 657536 - Scrollback file handle leak



commit 5eb91710313088da00db922709d6767c467c6525
Author: Marc Deslauriers <marc deslauriers ubuntu com>
Date:   Sat Sep 3 22:07:41 2011 +0530

    Bug 657536 - Scrollback file handle leak
    
    sync patch with xchat

 src/common/text.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/common/text.c b/src/common/text.c
index 6d138ed..363331d 100644
--- a/src/common/text.c
+++ b/src/common/text.c
@@ -146,6 +146,7 @@ file_to_buffer (char *file, int *len)
 	}
 
 	*len = st.st_size;
+	close (fh);
 	return buf;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]