[glib] GVariant: don't leak during type inferencing



commit 48a04f9303294304db5693acb1e4421cfdd4464a
Author: Ryan Lortie <desrt desrt ca>
Date:   Sat Jul 10 16:56:51 2010 -0400

    GVariant: don't leak during type inferencing

 glib/gvariant-parser.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/glib/gvariant-parser.c b/glib/gvariant-parser.c
index 1689d3e..d02775a 100644
--- a/glib/gvariant-parser.c
+++ b/glib/gvariant-parser.c
@@ -630,6 +630,7 @@ ast_array_get_pattern (AST    **array,
       merged = pattern_coalesce (pattern, tmp);
       g_free (pattern);
       pattern = merged;
+      g_free (tmp);
 
       if (merged == NULL)
         /* set coalescence implies pairwise coalescence (i think).



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