changeset 8370:2279bfa6aa59

[gaim-migrate @ 9097] Thou shalt fclose thy file or thou shalt crash. Hard. After 4 or so successive searches or. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 29 Feb 2004 19:40:56 +0000
parents 27c0cb0d8d07
children e50b2e83b91c
files src/log.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/log.c	Sun Feb 29 15:50:00 2004 +0000
+++ b/src/log.c	Sun Feb 29 19:40:56 2004 +0000
@@ -882,6 +882,7 @@
 	char *read = g_malloc(data->length + 1);
 	fseek(file, data->offset, SEEK_SET);
 	fread(read, data->length, 1, file);
+	fclose(file);
 	read[data->length] = '\0';
 	*flags = 0;
 	if(strstr(read, "<BR>"))