v3dv: Fix nir_shader leaks in v3dv_meta_{clear,copy}()
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 22 Jun 2022 23:45:03 +0000 (01:45 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 28 Jun 2022 09:07:32 +0000 (09:07 +0000)
Reported-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17186>

src/broadcom/vulkan/v3dv_meta_clear.c
src/broadcom/vulkan/v3dv_meta_copy.c

index 00c5d11..0cf1a21 100644 (file)
@@ -588,6 +588,7 @@ create_pipeline(struct v3dv_device *device,
                                    pipeline);
 
    ralloc_free(vs_nir);
+   ralloc_free(gs_nir);
    ralloc_free(fs_nir);
 
    return result;
index 3e746a7..bc91581 100644 (file)
@@ -3516,6 +3516,7 @@ create_pipeline(struct v3dv_device *device,
                                    pipeline);
 
    ralloc_free(vs_nir);
+   ralloc_free(gs_nir);
    ralloc_free(fs_nir);
 
    return result == VK_SUCCESS;