Skip to content

intel/clc: Fix file descriptor leak

Vinson Lee requested to merge vlee/mesa:fix-cid-1592335 into main

What does this MR do and why?

intel/clc: Fix file descriptor leak

Fix defect reported by Coverity Scan.

Resource leak (RESOURCE_LEAK)
leaked_storage: Variable fp going out of scope leaks the storage it points to.

Fixes: 4fd7495c6938 ("intel/clc: add ability to output NIR")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>

Merge request reports