[gnome-terminal/gnome-3-8] utils: Fix double-free in error path



commit c2e04feb86bcc9ed205d548a20c6ccaec3cb4e60
Author: Christian Persch <chpe gnome org>
Date:   Mon Mar 3 03:07:16 2014 +0100

    utils: Fix double-free in error path
    
    (cherry picked from commit d37f22f12f09ffc0253842d2d410d871e3af5d92)

 src/terminal-util.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/src/terminal-util.c b/src/terminal-util.c
index b70a722..f42bfac 100644
--- a/src/terminal-util.c
+++ b/src/terminal-util.c
@@ -1068,7 +1068,6 @@ as_to_rgba_palette (GVariant *variant,
   i = 0;
   while (g_variant_iter_next (&iter, "&s", &str)) {
     if (!gdk_rgba_parse (&colors[i++], str)) {
-      g_free (colors);
       return FALSE;
     }
   }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]