summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nv40/nv40_vertprog.c
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2008-05-30 11:04:55 +1000
committerBen Skeggs <skeggsb@gmail.com>2008-05-30 11:04:55 +1000
commit996b549fdbfe772ee56a51858e81e93bccaae5c5 (patch)
tree1c0667f1aa37ecbf2372c5762720236aa73e47e7 /src/gallium/drivers/nv40/nv40_vertprog.c
parent8b31d5fc8a5425b01adf80f4873cb816925ee0d1 (diff)
nv40: a couple of memory leaks
Diffstat (limited to 'src/gallium/drivers/nv40/nv40_vertprog.c')
-rw-r--r--src/gallium/drivers/nv40/nv40_vertprog.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv40/nv40_vertprog.c b/src/gallium/drivers/nv40/nv40_vertprog.c
index e10250528e..eb14869bfe 100644
--- a/src/gallium/drivers/nv40/nv40_vertprog.c
+++ b/src/gallium/drivers/nv40/nv40_vertprog.c
@@ -843,6 +843,12 @@ nv40_vertprog_translate(struct nv40_context *nv40,
vp->translated = TRUE;
out_err:
tgsi_parse_free(&parse);
+ if (vpc->r_temp)
+ FREE(vpc->r_temp);
+ if (vpc->r_address)
+ FREE(vpc->r_address);
+ if (vpc->imm)
+ FREE(vpc->imm);
FREE(vpc);
}