diff options
author | Philip Withnall <withnall@endlessm.com> | 2018-08-06 13:36:21 +0100 |
---|---|---|
committer | Philip Withnall <withnall@endlessm.com> | 2018-08-06 13:36:21 +0100 |
commit | 2860d4b50e5401f2c15c276a8af5dd5b33bafe51 (patch) | |
tree | 14ca1641b7b718801d8a81e4471ad3b8321248e6 /glib/gbookmarkfile.c | |
parent | 0fba231a6ba7029f645d5be89f961831ef2676d4 (diff) | |
download | glib-2860d4b50e5401f2c15c276a8af5dd5b33bafe51.tar.gz |
gbookmarkfile: Fix some more minor leaks when metadata elements are repeated
oss-fuzz#9723
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Diffstat (limited to 'glib/gbookmarkfile.c')
-rw-r--r-- | glib/gbookmarkfile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/glib/gbookmarkfile.c b/glib/gbookmarkfile.c index 3f0275fb9..31706ba12 100644 --- a/glib/gbookmarkfile.c +++ b/glib/gbookmarkfile.c @@ -863,7 +863,8 @@ parse_application_element (GMarkupParseContext *context, item->metadata->applications = g_list_prepend (item->metadata->applications, ai); g_hash_table_replace (item->metadata->apps_by_name, ai->name, ai); } - + + g_free (ai->exec); ai->exec = g_strdup (exec); if (count) |