Mesa (master): nv50: fix symbol table memory leak
Marcin Ålusarz
mslusarz at kemper.freedesktop.org
Tue Jun 5 22:00:23 UTC 2012
Module: Mesa
Branch: master
Commit: cfa7cb991ce7d2fd77ea7f5abf96c90d8a1ea68c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cfa7cb991ce7d2fd77ea7f5abf96c90d8a1ea68c
Author: Marcin Slusarz <marcin.slusarz at gmail.com>
Date: Tue Jun 5 20:18:33 2012 +0200
nv50: fix symbol table memory leak
---
src/gallium/drivers/nv50/nv50_program.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/nv50/nv50_program.c b/src/gallium/drivers/nv50/nv50_program.c
index ca40ac2..67f8629 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;
More information about the mesa-commit
mailing list