[PATCH 4/4] Coverity: mi/mispans.c: leaked_storage: Variable "newpoints" and "newwidths" goes out of scope

Oliver McFadden oliver.mcfadden at nokia.com
Mon Dec 28 02:02:58 PST 2009


Signed-off-by: Oliver McFadden <oliver.mcfadden at nokia.com>
---
 mi/mispans.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/mi/mispans.c b/mi/mispans.c
index 5504341..c9bd025 100644
--- a/mi/mispans.c
+++ b/mi/mispans.c
@@ -460,6 +460,10 @@ void miFillUniqueSpanGroup(DrawablePtr pDraw, GCPtr pGC, SpanGroup *spanGroup)
 			    }
 			    xfree (yspans);
 			    xfree (ysizes);
+			    if (newpoints)
+				xfree (newpoints);
+			    if (newwidths)
+				xfree (newwidths);
 			    miDisposeSpanGroup (spanGroup);
 			    return;
 			}
-- 
1.6.1



More information about the xorg-devel mailing list