From: John Darrington Date: Mon, 9 Jul 2012 20:44:13 +0000 (+0200) Subject: Fixed memory leak in cairo driver. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ce85b11b168b2f82fa9babe9c549c5b449dd41a;p=pspp Fixed memory leak in cairo driver. --- diff --git a/src/output/cairo.c b/src/output/cairo.c index 6229311aa7..a98df2e6c1 100644 --- a/src/output/cairo.c +++ b/src/output/cairo.c @@ -204,6 +204,8 @@ parse_color (struct output_driver *d, struct string_map *options, } } + free (string); + /* Convert 16 bit ints to float */ *dred = red / (double) 0xFFFF; *dgreen = green / (double) 0xFFFF;