mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-13 12:15:03 +00:00
trivial: Fix a tiny leak when using fwupdmgr
This commit is contained in:
parent
e3998eed5a
commit
7b2d75f94d
@ -2130,10 +2130,8 @@ fu_util_prompt_warning_composite(FuUtilPrivate *priv,
|
|||||||
for (guint j = 0; j < rels->len; j++) {
|
for (guint j = 0; j < rels->len; j++) {
|
||||||
FwupdRelease *rel_tmp = g_ptr_array_index(rels, j);
|
FwupdRelease *rel_tmp = g_ptr_array_index(rels, j);
|
||||||
if (fwupd_release_has_checksum(rel_tmp, rel_csum)) {
|
if (fwupd_release_has_checksum(rel_tmp, rel_csum)) {
|
||||||
if (!fu_util_prompt_warning(dev_tmp,
|
g_autofree gchar *title = fu_util_get_tree_title(priv);
|
||||||
rel_tmp,
|
if (!fu_util_prompt_warning(dev_tmp, rel_tmp, title, error))
|
||||||
fu_util_get_tree_title(priv),
|
|
||||||
error))
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -2151,7 +2149,8 @@ fu_util_update_device_with_release(FuUtilPrivate *priv,
|
|||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
if (!priv->no_safety_check && !priv->assume_yes) {
|
if (!priv->no_safety_check && !priv->assume_yes) {
|
||||||
if (!fu_util_prompt_warning(dev, rel, fu_util_get_tree_title(priv), error))
|
g_autofree gchar *title = fu_util_get_tree_title(priv);
|
||||||
|
if (!fu_util_prompt_warning(dev, rel, title, error))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
if (!fu_util_prompt_warning_fde(dev, error))
|
if (!fu_util_prompt_warning_fde(dev, error))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Loading…
Reference in New Issue
Block a user