aboutsummaryrefslogtreecommitdiff
path: root/hardinfo/info.c
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@hardinfo.org>2019-07-04 23:01:55 -0700
committerLeandro Pereira <leandro@hardinfo.org>2019-07-04 23:01:55 -0700
commit092660247f379d260e7e750a16a1e3c531351d5e (patch)
treecd49e3d011f0b9871d9935b184fe251e8d7c4587 /hardinfo/info.c
parent37811a2157a962f15010c9f11bf0b708f6123cd8 (diff)
Plug memory leak when flattening a struct Info
Diffstat (limited to 'hardinfo/info.c')
-rw-r--r--hardinfo/info.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hardinfo/info.c b/hardinfo/info.c
index c54775ed..90a86148 100644
--- a/hardinfo/info.c
+++ b/hardinfo/info.c
@@ -269,5 +269,7 @@ gchar *info_flatten(struct Info *info)
g_string_append_printf(values, "[$ShellParam$]\n%s", shell_param->str);
g_string_free(shell_param, TRUE);
+ g_free(info);
+
return g_string_free(values, FALSE);
}