mesa: avoid leaking closure when iterating over a string_to_uint_map
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 2 Oct 2015 00:18:19 +0000 (20:18 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 2 Oct 2015 18:14:27 +0000 (14:14 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/program/hash_table.h

index e85a836..d0a2abf 100644 (file)
@@ -249,6 +249,7 @@ public:
       wrapper->closure = closure;
 
       hash_table_call_foreach(this->ht, subtract_one_wrapper, wrapper);
+      free(wrapper);
    }
 
    /**