mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-21 22:59:16 +02:00
gopenuriportal: Fix GVariantBuilder and string leakage on g_open failure
This commit is contained in:
parent
e90eaff490
commit
9dc7475f93
@ -108,6 +108,8 @@ g_openuri_portal_open_uri (const char *uri,
|
|||||||
errsv = errno;
|
errsv = errno;
|
||||||
if (fd == -1)
|
if (fd == -1)
|
||||||
{
|
{
|
||||||
|
g_free (path);
|
||||||
|
g_variant_builder_clear (&opt_builder);
|
||||||
g_set_error (error, G_IO_ERROR, g_io_error_from_errno (errsv),
|
g_set_error (error, G_IO_ERROR, g_io_error_from_errno (errsv),
|
||||||
"Failed to open '%s'", path);
|
"Failed to open '%s'", path);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user