mesa/src
Ian Romanick a27c6e1aea mesa/swrast: Move free calls outside the attachment loop
This was originally discovered by Klocwork analysis:

    Possible memory leak. Dynamic memory stored in 'srcBuffer0'
    allocated through function 'malloc' at line 566 can be lost at line
    746

However, I think the problem is actually much worse.  Since the memory
is freed after the first pass through the loop, the released buffer may
be used on the next iteration!

NOTE: This is a candidate for stable release branches.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-04-16 10:13:48 -07:00
..
egl egl/dri2: NULL check value returned by dri2_create_surface 2013-04-12 16:24:48 -07:00
gallium r600g: Workaround for a harware bug with nested loops on Cayman 2013-04-16 18:02:11 +04:00
gbm gbm: Remember to init format on gbm_dri_bo_create. 2013-02-07 20:00:52 -05:00
getopt
glsl glsl: Fix hypothetical NULL dereference related to process_array_type 2013-04-12 16:24:44 -07:00
glx build: Rename sources.mak -> Makefile.sources 2013-04-15 12:04:25 -07:00
gtest gtest: Build it only for 'make check'. 2013-01-13 12:38:44 +01:00
mapi build: Get rid of CORE_DIRS 2013-04-15 12:04:25 -07:00
mesa mesa/swrast: Move free calls outside the attachment loop 2013-04-16 10:13:48 -07:00
Makefile.am build: Remove GALLIUM_DIRS 2013-04-15 12:04:26 -07:00
SConscript Remove libGLU 2012-08-31 10:58:15 -07:00