nv50: fix symbol table memory leak
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Tue, 5 Jun 2012 18:18:33 +0000 (20:18 +0200)
committerMarcin Slusarz <marcin.slusarz@gmail.com>
Tue, 5 Jun 2012 21:58:43 +0000 (23:58 +0200)
src/gallium/drivers/nv50/nv50_program.c

index ca40ac2dd43772c05241c8d13227c2e5112e3917..67f86296da447c5a3076159bdf916ab04c545147 100644 (file)
@@ -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;