mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-06 00:43: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 */
|
||||
for (guint i = 0; values[i] != NULL; i++) {
|
||||
g_autofree gchar *tmp = NULL;
|
||||
g_autoptr(DfuFirmware) firmware = NULL;
|
||||
g_autoptr(GFile) file = NULL;
|
||||
g_autoptr(GError) error_local = NULL;
|
||||
@ -1742,7 +1743,8 @@ dfu_tool_dump (DfuToolPrivate *priv, gchar **values, GError **error)
|
||||
error_local->message);
|
||||
continue;
|
||||
}
|
||||
g_print ("%s\n", dfu_firmware_to_string (firmware));
|
||||
tmp = dfu_firmware_to_string (firmware);
|
||||
g_print ("%s\n", tmp);
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user