diff --git a/.pick_status.json b/.pick_status.json index d10411c3ab9..8e7106367d0 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -1894,7 +1894,7 @@ "description": "nir_opt_constant_folding: Fix nir_deref_path leak", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null }, diff --git a/src/compiler/nir/nir_opt_constant_folding.c b/src/compiler/nir/nir_opt_constant_folding.c index dd91fed65c5..4b27bc36081 100644 --- a/src/compiler/nir/nir_opt_constant_folding.c +++ b/src/compiler/nir/nir_opt_constant_folding.c @@ -167,6 +167,7 @@ const_value_for_deref(nir_deref_instr *deref) /* We have to have ended at a vector */ assert(c->num_elements == 0); + nir_deref_path_finish(&path); return v ? v : c->values; fail: