mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-02 22:03:07 +02: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';
|
*dash = '\0';
|
||||||
|
|
||||||
if (!g_file_get_contents (filename, &buffer, &length, error))
|
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);
|
module = _g_ir_parser_parse_string (parser, namespace, filename, buffer, length, error);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user