From: Brian Paul Date: Fri, 17 Apr 2015 14:14:23 +0000 (+0100) Subject: mesa/st: Free st_translate with FREE macro. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e050a19af895318aaf417919c6a8ecba2da53304;p=mesa.git 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 --- 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;