radeonsi: stop leaking nir
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 28 Aug 2017 05:02:49 +0000 (15:02 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Mon, 28 Aug 2017 23:46:29 +0000 (09:46 +1000)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_state_shaders.c

index 35bc0db74e8c1c7538a4f349c9621f3d30033bb1..71d798749c1354a3cad3e52cbeb470c9d3fd33e2 100644 (file)
@@ -2484,6 +2484,7 @@ void si_destroy_shader_selector(struct si_context *sctx,
        util_queue_fence_destroy(&sel->ready);
        mtx_destroy(&sel->mutex);
        free(sel->tokens);
+       ralloc_free(sel->nir);
        free(sel);
 }