[xchat-gnome] Bug 657536 - Scrollback file handle leak



commit f3b237445ec76e13302bb90706e442f3d913c22e
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]