Bug 11859

Summary: Mem leak fixes for randr
Product: xorg Reporter: Roland "Test-tools" Bär <roland>
Component: Server/GeneralAssignee: Keith Packard <keithp>
Status: RESOLVED INVALID QA Contact: Xorg Project Team <xorg-team>
Severity: trivial    
Priority: lowest Keywords: janitor, patch
Version: git   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
trivial patch none

Description Roland "Test-tools" Bär 2007-08-06 02:02:15 UTC
Please apply attached patch.
Comment 1 Roland "Test-tools" Bär 2007-08-06 02:02:53 UTC
Created attachment 11006 [details] [review]
trivial patch
Comment 2 Daniel Stone 2007-09-23 08:52:04 UTC
Keith, is this okay?
Comment 3 Keith Packard 2007-09-23 14:00:28 UTC
Most of these patches are incorrect.

AddResource calls the delete function on failure.

prop_value is not an allocated object.

num_values parity can be checked before the property is created. Alternatively, use RRDestroyOutputProperty instead of xfree to free it, but only if it was added (if (add) RRDestroyOutputProperty (prop);)
Comment 4 Eric Anholt 2009-01-30 21:32:06 UTC
Comment on attachment 11006 [details] [review]
trivial patch

mark rejected patch as obsolete.
Comment 5 Eric Anholt 2009-10-13 13:25:24 UTC
Feedback timeout.

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.