mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-06 18:37:58 +00:00
trivial: Fix a small memory leak in fwupd_device_to_string()
This commit is contained in:
parent
de0f50110f
commit
d3b93f83ed
@ -1106,7 +1106,7 @@ fwupd_device_to_string (FwupdDevice *device)
|
||||
if (priv->flashes_left < 2)
|
||||
fwupd_pad_kv_int (str, FWUPD_RESULT_KEY_DEVICE_FLASHES_LEFT, priv->flashes_left);
|
||||
if (priv->icons->len > 0) {
|
||||
GString *tmp = g_string_new (NULL);
|
||||
g_autoptr(GString) tmp = g_string_new (NULL);
|
||||
for (guint i = 0; i < priv->icons->len; i++) {
|
||||
const gchar *icon = g_ptr_array_index (priv->icons, i);
|
||||
g_string_append_printf (tmp, "%s,", icon);
|
||||
|
Loading…
Reference in New Issue
Block a user