summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-04-17 15:14:23 +0100
committerJose Fonseca <[email protected]>2015-04-17 15:14:23 +0100
commite050a19af895318aaf417919c6a8ecba2da53304 (patch)
treed7686955e3a591e3abf207cd4b2abe4643f39c60 /src/mesa
parent8638e3ae1b33a887f24a6e50bdb722361ee9414c (diff)
mesa/st: Free st_translate with FREE macro.
To match CALLOC_STRUCT macro. Fixes memory corruption on Windows when u_memory's memory debugging is enabled. Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_glsl_to_tgsi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
index fa390c98859..93671ba9cc0 100644
--- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
@@ -5365,7 +5365,7 @@ out:
debug_printf("%s: translate error flag set\n", __func__);
}
- free(t);
+ FREE(t);
}
return ret;