Module: Mesa
Branch: main
Commit: 7afdbd5f6d136f433302bacecc221b9afab88328
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7afdbd5f6d136f433302bacecc221b9afab88328

Author: Karol Herbst <[email protected]>
Date:   Tue Oct 10 21:32:54 2023 +0200

nir/load_libclc: fix libclc memory leak

Fixes: ef453f54394 ("spirv: Add a shared libclc loader")
Signed-off-by: Karol Herbst <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25649>

---

 src/compiler/clc/nir_load_libclc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/compiler/clc/nir_load_libclc.c 
b/src/compiler/clc/nir_load_libclc.c
index d9d1ad2d6a3..e736a2b2d3f 100644
--- a/src/compiler/clc/nir_load_libclc.c
+++ b/src/compiler/clc/nir_load_libclc.c
@@ -393,6 +393,7 @@ nir_load_libclc_shader(unsigned ptr_bit_size,
       blob_init(&blob);
       nir_serialize(&blob, nir, false);
       disk_cache_put(disk_cache, cache_key, blob.data, blob.size, NULL);
+      blob_finish(&blob);
    }
 #endif
 

Reply via email to