Fix resource leak in readBufferCache

This commit is contained in:
David Crosby
2015-07-09 21:03:17 -06:00
committed by Tatsuya Kinoshita
parent 80b38e6bc3
commit 2582ffa397

View File

@@ -705,6 +705,7 @@ readBufferCache(Buffer *buf)
cache = fopen(buf->savecache, "r");
if (cache == NULL || fread1(clnum, cache) || fread1(tlnum, cache)) {
fclose(cache);
buf->savecache = NULL;
return -1;
}