# HG changeset patch # User Mark Doliner # Date 1078083656 0 # Node ID 2279bfa6aa59a6f9ab9cfa7dcf8f452a32abd01c # Parent 27c0cb0d8d07a9fcaa85db4725b1008051e0f412 [gaim-migrate @ 9097] Thou shalt fclose thy file or thou shalt crash. Hard. After 4 or so successive searches or. committer: Tailor Script diff -r 27c0cb0d8d07 -r 2279bfa6aa59 src/log.c --- 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, "
"))