From 2582ffa39786739fcc49ee20799c2f4560a3e778 Mon Sep 17 00:00:00 2001 From: David Crosby Date: Thu, 9 Jul 2015 21:03:17 -0600 Subject: Fix resource leak in readBufferCache --- buffer.c | 1 + 1 file changed, 1 insertion(+) (limited to 'buffer.c') diff --git a/buffer.c b/buffer.c index 5afc26a..f67dd26 100644 --- a/buffer.c +++ b/buffer.c @@ -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; } -- cgit v1.2.3