[Mesa-dev] [PATCH] r600g: Fix memory leak in r600_bytecode_add_vtx.
Vinson Lee
vlee at freedesktop.org
Tue Jan 8 23:09:00 PST 2013
Fixes resource leak defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
src/gallium/drivers/r600/r600_asm.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c
index ef67717..d324d59 100644
--- a/src/gallium/drivers/r600/r600_asm.c
+++ b/src/gallium/drivers/r600/r600_asm.c
@@ -1625,6 +1625,7 @@ int r600_bytecode_add_vtx(struct r600_bytecode *bc, const struct r600_bytecode_v
break;
default:
R600_ERR("Unknown chip class %d.\n", bc->chip_class);
+ free(nvtx);
return -EINVAL;
}
}
--
1.8.0
More information about the mesa-dev
mailing list