util/disk_cache: close a previously opened handle in disk_cache_put (v2)
authorGwan-gyeong Mun <elongbug@gmail.com>
Mon, 21 Nov 2016 15:21:23 +0000 (00:21 +0900)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 22 Nov 2016 15:13:42 +0000 (15:13 +0000)
commit69cc7d90f9f60d95cd570a4e87755a474554d41f
tree97132088b403940cfeebd91a35b5ad2a12ffc0f5
parent0e8dc81c3acf5999b6e9263ee320a4db31742119
util/disk_cache: close a previously opened handle in disk_cache_put (v2)

We're missing the close() to the matching open().

CID 1373407

v2: Fixes from Emil Velikov's review
    Update the teardown in reverse order of the setup/init.

Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Mun Gwan-gyeong <elongbug@gmail.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> (v1)
src/util/disk_cache.c