summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi/tgsi_sanity.c
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2010-01-05 09:09:50 +0100
committerMichal Krol <michal@vmware.com>2010-01-05 09:28:41 +0100
commit55b5c8816e95528cbe68599bade44796e10711cd (patch)
tree6f8775c8af1a1cc1009c0aa9b4990fd2248d8bdf /src/gallium/auxiliary/tgsi/tgsi_sanity.c
parent767d1472df68a777c51c406fa3f8d642c7cf58c0 (diff)
downloadexternal_mesa3d-55b5c8816e95528cbe68599bade44796e10711cd.zip
external_mesa3d-55b5c8816e95528cbe68599bade44796e10711cd.tar.gz
external_mesa3d-55b5c8816e95528cbe68599bade44796e10711cd.tar.bz2
tgsi: Use FREE() to release MALLOC-ed() memories in sanity.
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_sanity.c')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_sanity.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_sanity.c b/src/gallium/auxiliary/tgsi/tgsi_sanity.c
index e4bd1b7..9b06444 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_sanity.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_sanity.c
@@ -247,7 +247,7 @@ check_register_usage(
boolean indirect_access )
{
if (!check_file_name( ctx, reg->file )) {
- free(reg);
+ FREE(reg);
return FALSE;
}
@@ -261,7 +261,7 @@ check_register_usage(
if (!is_ind_register_used(ctx, reg))
cso_hash_insert(ctx->regs_ind_used, reg->file, reg);
else
- free(reg);
+ FREE(reg);
}
else {
if (!is_register_declared( ctx, reg )) {
@@ -275,7 +275,7 @@ check_register_usage(
if (!is_register_used( ctx, reg ))
cso_hash_insert(ctx->regs_used, scan_register_key(reg), reg);
else
- free(reg);
+ FREE(reg);
}
return TRUE;
}
@@ -513,7 +513,7 @@ regs_hash_destroy(struct cso_hash *hash)
while (!cso_hash_iter_is_null(iter)) {
scan_register *reg = (scan_register *)cso_hash_iter_data(iter);
iter = cso_hash_erase(hash, iter);
- free(reg);
+ FREE(reg);
}
cso_hash_delete(hash);
}