From: Samuel Pitoiset Date: Sat, 14 Nov 2015 21:57:59 +0000 (+0100) Subject: nv50: free interpolation parameters in nv50_program_destroy() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7167a058baa2b524e31e51d8924fe5d0ea661b70;p=mesa.git nv50: free interpolation parameters in nv50_program_destroy() 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 Reviewed-by: Ilia Mirkin --- diff --git a/src/gallium/drivers/nouveau/nv50/nv50_program.c b/src/gallium/drivers/nouveau/nv50/nv50_program.c index 89e7a338283..707bf7a8ae3 100644 --- a/src/gallium/drivers/nouveau/nv50/nv50_program.c +++ b/src/gallium/drivers/nouveau/nv50/nv50_program.c @@ -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));