Bug 26559

Summary: [cppcheck] found a lots of resource and memory leaks
Product: Mesa Reporter: ettlmartin <ettl.martin>
Component: GLUAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: fix a bunch of errors, detected by cppcheck

Description ettlmartin 2010-02-13 14:50:53 UTC
Created attachment 33283 [details] [review]
fix a bunch of errors, detected by cppcheck

during a check of the current git head with the static code analyser (cppcheck: http://sourceforge.net/projects/cppcheck/) the tool discoverd a bunch of resource and memory leaks.

Please refer the attched patch a few of them, but not all.

Best regards

Ettl Martin
Comment 1 Brian Paul 2010-02-14 09:05:25 UTC
I've applied your patches.  Thanks.

Just FYI, a lot of the test programs in Mesa are "throw-aways" in which we really don't care about mem leaks or stuff like that.

The src/glu/mini/ and src/glu/mesa/ directories should probably be removed.  They haven't been used in years.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.