Skip to content

vulkan/screenshot-layer: Fix memory leak in writePNG function

liu cong requested to merge liucong2/mesa:fix_memory_leak into main

What does this MR do and why?

vulkan/screenshot-layer: Fix memory leak in writePNG function

The writePNG function was not freeing allocated memory in error cases,
leading to potential memory leaks. This patch ensures proper memory
cleanup in all execution paths.

Signed-off-by: Cong Liu <liucong2@kylinos.cn>

Merge request reports

Loading