nir/load_libclc: fix libclc memory leak

Fixes: ef453f5439 ("spirv: Add a shared libclc loader")
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25649>
This commit is contained in:
Karol Herbst
2023-10-10 21:32:54 +02:00
committed by Marge Bot
parent a59a66e111
commit 7afdbd5f6d

View File

@@ -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