summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2010-01-05 09:09:50 +0100
committerMichal Krol <[email protected]>2010-01-05 09:28:41 +0100
commit55b5c8816e95528cbe68599bade44796e10711cd (patch)
tree6f8775c8af1a1cc1009c0aa9b4990fd2248d8bdf /src/gallium/auxiliary/tgsi
parent767d1472df68a777c51c406fa3f8d642c7cf58c0 (diff)
tgsi: Use FREE() to release MALLOC-ed() memories in sanity.
Diffstat (limited to 'src/gallium/auxiliary/tgsi')
-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 e4bd1b7dc20..9b0644465af 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);
}