mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
girepository: Fix leak in _g_ir_parser_parse_file
Found by Coverity. https://bugzilla.redhat.com/show_bug.cgi?id=1938731
This commit is contained in:
parent
62b1ebd822
commit
4e3ab408f1
@ -3672,7 +3672,11 @@ _g_ir_parser_parse_file (GIrParser *parser,
|
||||
*dash = '\0';
|
||||
|
||||
if (!g_file_get_contents (filename, &buffer, &length, error))
|
||||
return NULL;
|
||||
{
|
||||
g_free (namespace);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
module = _g_ir_parser_parse_string (parser, namespace, filename, buffer, length, error);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user