[Mesa-dev] [PATCH] util/disk_cache: close a previously opened handle in disk_cache_put
elongbug at gmail.com
Sun Nov 20 13:59:34 UTC 2016
We're missing the close() to the matching open().
Signed-off-by: Mun Gwan-gyeong <elongbug at gmail.com>
src/util/disk_cache.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/src/util/disk_cache.c b/src/util/disk_cache.c
index 4287878..5ceb3aa 100644
@@ -612,19 +612,18 @@ disk_cache_put(struct disk_cache *cache,
- /* This close finally releases the flock, (now that the final dile
- * has been renamed into place and the size has been added).
- fd = -1;
+ /* This close finally releases the flock, (now that the final dile
+ * has been renamed into place and the size has been added).
if (fd != -1)
+ if (fd_final != -1)
More information about the mesa-dev