From da2fdf950fe754f9d38b3c2b8e73582ac92c4477 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Thu, 1 Oct 2015 20:18:19 -0400 Subject: mesa: avoid leaking closure when iterating over a string_to_uint_map Signed-off-by: Ilia Mirkin Reviewed-by: Iago Toral Quiroga --- src/mesa/program/hash_table.h | 1 + 1 file changed, 1 insertion(+) 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); } /** -- cgit v1.2.3