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 e85a836a00bd4ea16d6ddcae0a9a0287e95d7cd7..d0a2abffa343c8b229acefcc8d08aba2efb9f19a 100644 (file)
@@ -249,6 +249,7 @@ public:
       wrapper->closure = closure;
 
       hash_table_call_foreach(this->ht, subtract_one_wrapper, wrapper);
+      free(wrapper);
    }
 
    /**