diff options
-rw-r--r-- | hardinfo/info.c | 2 | ||||
-rw-r--r-- | includes/info.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/hardinfo/info.c b/hardinfo/info.c index 84aa1728..57e67ce6 100644 --- a/hardinfo/info.c +++ b/hardinfo/info.c @@ -217,6 +217,8 @@ static void flatten_group(GString *output, const struct InfoGroup *group, guint if (field.free_value_on_flatten) g_free((gchar *)field.value); + if (field.free_name_on_flatten) + g_free((gchar *)field.name); g_free(field.tag); } diff --git a/includes/info.h b/includes/info.h index 63346135..164d1a16 100644 --- a/includes/info.h +++ b/includes/info.h @@ -66,6 +66,7 @@ struct InfoField { gboolean highlight; /* select in GUI, highlight in report (flag:*) */ gboolean report_details; /* show moreinfo() in report (flag:!) */ + gboolean free_name_on_flatten; gboolean free_value_on_flatten; }; |