From cfa7cb991ce7d2fd77ea7f5abf96c90d8a1ea68c Mon Sep 17 00:00:00 2001 From: Marcin Slusarz Date: Tue, 5 Jun 2012 20:18:33 +0200 Subject: [PATCH] nv50: fix symbol table memory leak --- src/gallium/drivers/nv50/nv50_program.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/nv50/nv50_program.c b/src/gallium/drivers/nv50/nv50_program.c index ca40ac2dd43..67f86296da4 100644 --- a/src/gallium/drivers/nv50/nv50_program.c +++ b/src/gallium/drivers/nv50/nv50_program.c @@ -343,6 +343,9 @@ nv50_program_translate(struct nv50_program *prog, uint16_t chipset) NOUVEAU_ERR("shader translation failed: %i\n", ret); goto out; } + if (info->bin.syms) /* we don't need them yet */ + FREE(info->bin.syms); + prog->code = info->bin.code; prog->code_size = info->bin.codeSize; prog->fixups = info->bin.relocData; -- 2.30.2