Skip to content

etnaviv: fix read staging buffer leak

Lucas Stach requested to merge lynxeye/mesa:etnaviv-fix-read-staging-leak into main

Currently we only free a potentially allocated staging buffer when the mapping is a write mapping, but staging buffers can also be allocated for read mappings. Fix the read staging buffer leaks by always freeing the staging buffer.

Should fix the memory leak found by the ASAN CI job.

Merge request reports