mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-07 08:39:48 +00:00
trivial: Fix a tiny memory leak when using 'dfu-tool dump'
This commit is contained in:
parent
3f4066852e
commit
dd10a8f595
@ -1729,6 +1729,7 @@ dfu_tool_dump (DfuToolPrivate *priv, gchar **values, GError **error)
|
|||||||
|
|
||||||
/* open files */
|
/* open files */
|
||||||
for (guint i = 0; values[i] != NULL; i++) {
|
for (guint i = 0; values[i] != NULL; i++) {
|
||||||
|
g_autofree gchar *tmp = NULL;
|
||||||
g_autoptr(DfuFirmware) firmware = NULL;
|
g_autoptr(DfuFirmware) firmware = NULL;
|
||||||
g_autoptr(GFile) file = NULL;
|
g_autoptr(GFile) file = NULL;
|
||||||
g_autoptr(GError) error_local = NULL;
|
g_autoptr(GError) error_local = NULL;
|
||||||
@ -1742,7 +1743,8 @@ dfu_tool_dump (DfuToolPrivate *priv, gchar **values, GError **error)
|
|||||||
error_local->message);
|
error_local->message);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
g_print ("%s\n", dfu_firmware_to_string (firmware));
|
tmp = dfu_firmware_to_string (firmware);
|
||||||
|
g_print ("%s\n", tmp);
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user