--- glib-org/gvariant-parser.c	2015-12-29 16:14:06.233987573 +0530
+++ glib/gvariant-parser.c	2015-12-29 16:15:13.478687588 +0530
@@ -1722,6 +1722,7 @@
                           G_VARIANT_PARSE_ERROR_UNTERMINATED_STRING_CONSTANT,
                           "unterminated string constant");
         g_free (token);
+	 g_free (str);
         return NULL;
 
       case '\\':
@@ -1732,6 +1733,7 @@
                               G_VARIANT_PARSE_ERROR_UNTERMINATED_STRING_CONSTANT,
                               "unterminated string constant");
             g_free (token);
+	     g_free (str);
             return NULL;
 
           case '0': case '1': case '2': case '3':
