diff options
Diffstat (limited to 'json-glib/json-parser.c')
-rw-r--r-- | json-glib/json-parser.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/json-glib/json-parser.c b/json-glib/json-parser.c index 526e2de..55da6fb 100644 --- a/json-glib/json-parser.c +++ b/json-glib/json-parser.c @@ -760,7 +760,10 @@ json_parse_statement (JsonParser *parser, /* ... and finally swallow the '=' */ next_token = json_scanner_get_next_token (scanner); if (next_token != '=') - return '='; + { + g_free (name); + return '='; + } priv->has_assignment = TRUE; priv->variable_name = name; |