i915,i965: Fix memory leak in try_pbo_upload (v2)
authorVinson Lee <vlee@freedesktop.org>
Fri, 2 Aug 2013 06:04:27 +0000 (23:04 -0700)
committerChad Versace <chad.versace@linux.intel.com>
Thu, 15 Aug 2013 17:37:22 +0000 (10:37 -0700)
commit035bf2198368d3fa69387788a63039d71319f0bf
treee0c722cf5f7b43f8e3a8e3806afd0afae0a4df30
parent6ca18e06aecd041e94c2cec5dcf15721c9c0a94d
i915,i965: Fix memory leak in try_pbo_upload (v2)

Fixes "Resource leak" defect reported by Coverity.
Tested on Haswell, no Piglit regressions.

v2: Apply to i965, not just i915. (chadv)

CC: "9.2, 9.1" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i915/intel_tex_image.c
src/mesa/drivers/dri/i965/intel_tex_image.c