diff --git a/.pick_status.json b/.pick_status.json index 6de64019f98..bd033e943ac 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -3394,7 +3394,7 @@ "description": "panfrost: Don't leak NIR compute shaders", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "40372bd720fe16186e9abc832bb452a3143d0e00", "notes": null diff --git a/src/gallium/drivers/panfrost/pan_shader.c b/src/gallium/drivers/panfrost/pan_shader.c index 42bb2f72768..546910f8e66 100644 --- a/src/gallium/drivers/panfrost/pan_shader.c +++ b/src/gallium/drivers/panfrost/pan_shader.c @@ -470,6 +470,7 @@ panfrost_create_compute_state(struct pipe_context *pctx, /* The NIR becomes invalid after this. For compute kernels, we never * need to access it again. Don't keep a dangling pointer around. */ + ralloc_free((void *)so->nir); so->nir = NULL; return so;