Browse Source

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 <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
tags/11.1-branchpoint
Samuel Pitoiset 10 years ago
parent
commit
7167a058ba
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/gallium/drivers/nouveau/nv50/nv50_program.c

+ 1
- 1
src/gallium/drivers/nouveau/nv50/nv50_program.c View File

@@ -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));

Loading…
Cancel
Save