[PATCH bitmap] Fix memory leak.

Trevor Woerner twoerner at gmail.com
Thu Dec 23 09:01:03 PST 2010


From: Trevor Woerner <twoerner at gmail.com>

Signed-off-by: Trevor Woerner <twoerner at gmail.com>
---
 bmtoa.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/bmtoa.c b/bmtoa.c
index bdd2078..8cd96b1 100644
--- a/bmtoa.c
+++ b/bmtoa.c
@@ -208,6 +208,7 @@ print_scanline (unsigned int width,
 	putchar ('\n');
 	if (padded) dp++;
     }
+    free (scanline);
     return;
 }
 
-- 
1.7.3.4.598.g85356



More information about the xorg-devel mailing list