From: Brian Date: Sat, 24 Mar 2007 22:26:51 +0000 (-0600) Subject: fix mem leak X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cfdd07d7d394a2a595a545c0ef81d00dd6156742;p=mesa.git fix mem leak --- diff --git a/src/mesa/shader/slang/slang_compile_variable.c b/src/mesa/shader/slang/slang_compile_variable.c index ae37aed5145..e099ecb067e 100644 --- a/src/mesa/shader/slang/slang_compile_variable.c +++ b/src/mesa/shader/slang/slang_compile_variable.c @@ -272,6 +272,9 @@ slang_variable_destruct(slang_variable * var) slang_operation_destruct(var->initializer); slang_alloc_free(var->initializer); } + if (var->aux) { + _mesa_free(var->aux); + } }