From: Ilia Mirkin Date: Fri, 2 Oct 2015 00:18:19 +0000 (-0400) Subject: mesa: avoid leaking closure when iterating over a string_to_uint_map X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=da2fdf950fe754f9d38b3c2b8e73582ac92c4477;p=mesa.git mesa: avoid leaking closure when iterating over a string_to_uint_map Signed-off-by: Ilia Mirkin Reviewed-by: Iago Toral Quiroga --- diff --git a/src/mesa/program/hash_table.h b/src/mesa/program/hash_table.h index e85a836a00b..d0a2abffa34 100644 --- a/src/mesa/program/hash_table.h +++ b/src/mesa/program/hash_table.h @@ -249,6 +249,7 @@ public: wrapper->closure = closure; hash_table_call_foreach(this->ht, subtract_one_wrapper, wrapper); + free(wrapper); } /**