Mesa (master): mesa/main: Fix tmp_row memory leak in texstore_rgba_integer.
Jason Ekstrand
jekstrand at kemper.freedesktop.org
Tue Nov 18 22:58:22 UTC 2014
Module: Mesa
Branch: master
Commit: 80bffde0a28c533b263bab97470362b0eec54e9f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=80bffde0a28c533b263bab97470362b0eec54e9f
Author: Siavash Eliasi <siavashserver at gmail.com>
Date: Sat Nov 15 22:50:13 2014 +0330
mesa/main: Fix tmp_row memory leak in texstore_rgba_integer.
Reviewed-by: Jason Ekstrand <jason.ekstrand at intel.com>
---
src/mesa/main/texstore.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c
index f913e42..f858cef 100644
--- a/src/mesa/main/texstore.c
+++ b/src/mesa/main/texstore.c
@@ -1667,8 +1667,10 @@ texstore_rgba_integer(TEXSTORE_PARAMS)
assert(is_array && !normalized);
- if (!is_array)
+ if (!is_array) {
+ free(tmp_row);
return GL_FALSE;
+ }
invert_swizzle(dst2rgba, rgba2dst);
compute_component_mapping(GL_RGBA, baseInternalFormat, base2rgba);
More information about the mesa-commit
mailing list