Skip to content

Commit

Permalink
trivial: Fix a tiny memory leak with fwupdtool get-plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
hughsie committed Jun 13, 2022
1 parent 2ae4587 commit 2839527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fu-util-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1750,7 +1750,7 @@ fu_util_plugin_to_string(FwupdPlugin *plugin, guint idt)
/* TRANSLATORS: description of plugin state, e.g. disabled */
hdr = _("Flags");
if (flags == 0x0) {
const gchar *tmp = fu_util_plugin_flag_to_cli_text(flags);
g_autofree gchar *tmp = fu_util_plugin_flag_to_cli_text(flags);
g_autofree gchar *li = g_strdup_printf("• %s", tmp);
fu_common_string_append_kv(str, idt + 1, hdr, li);
} else {
Expand Down

0 comments on commit 2839527

Please sign in to comment.