As for nvc0, we need to free memory allocated by interpolation parameters. This fixes a memory leak spotted by valgrind. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>tags/11.1-branchpoint
| @@ -489,7 +489,7 @@ nv50_program_destroy(struct nv50_context *nv50, struct nv50_program *p) | |||
| FREE(p->code); | |||
| FREE(p->fixups); | |||
| FREE(p->interps); | |||
| FREE(p->so); | |||
| memset(p, 0, sizeof(*p)); | |||