summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2013-01-09 08:09:00 +0100
committerAlex Deucher <[email protected]>2013-01-09 11:11:46 -0500
commitb37930f309a2e04f242a171152cb7c6c4300266a (patch)
treefe3b7495e38df9453b1e98bda8a3db165e41e000 /src/gallium/drivers
parentf8651dea4e4aa12a2a4aa287d45b7495f146af37 (diff)
r600g: Fix memory leak in r600_bytecode_add_vtx.
Fixes resource leak defect reported by Coverity. Signed-off-by: Vinson Lee <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/r600/r600_asm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c
index ef677170a5b..d324d59f48d 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;
}
}