Mesa (master): mesa: avoid leaking closure when iterating over a string_to_uint_map
Ilia Mirkin
imirkin at kemper.freedesktop.org
Fri Oct 2 18:16:18 UTC 2015
Module: Mesa
Branch: master
Commit: da2fdf950fe754f9d38b3c2b8e73582ac92c4477
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=da2fdf950fe754f9d38b3c2b8e73582ac92c4477
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date: Thu Oct 1 20:18:19 2015 -0400
mesa: avoid leaking closure when iterating over a string_to_uint_map
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: Iago Toral Quiroga <itoral at igalia.com>
---
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 e85a836..d0a2abf 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);
}
/**
More information about the mesa-commit
mailing list