diff options
author | Siavash Eliasi <[email protected]> | 2014-11-15 22:32:13 +0330 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2014-11-18 14:55:39 -0800 |
commit | 80bffde0a28c533b263bab97470362b0eec54e9f (patch) | |
tree | c2f05e929809161d2879533240137d20fa8c1601 /src/mesa/main/texstore.c | |
parent | d76be6bd601680fdbc0b52271711af0abb88ce56 (diff) |
mesa/main: Fix tmp_row memory leak in texstore_rgba_integer.
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/main/texstore.c')
-rw-r--r-- | src/mesa/main/texstore.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index f913e42d315..f858cef5061 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); |