mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-14 11:48:09 +02:00
up-config: set filename variable with g_autofree
This commit is contained in:
parent
8cb9fb0231
commit
469346b6bf
1 changed files with 1 additions and 3 deletions
|
|
@ -97,7 +97,7 @@ up_config_init (UpConfig *config)
|
|||
gboolean allow_risky_critical_action = FALSE;
|
||||
g_autofree gchar *critical_action = NULL;
|
||||
GError *error = NULL;
|
||||
gchar *filename;
|
||||
g_autofree gchar *filename = NULL;
|
||||
gboolean ret;
|
||||
|
||||
config->priv = up_config_get_instance_private (config);
|
||||
|
|
@ -137,8 +137,6 @@ up_config_init (UpConfig *config)
|
|||
" risky settings.");
|
||||
}
|
||||
}
|
||||
|
||||
g_free (filename);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue