diff options
Diffstat (limited to 'hardinfo2/arch/linux')
-rw-r--r-- | hardinfo2/arch/linux/common/dmi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hardinfo2/arch/linux/common/dmi.h b/hardinfo2/arch/linux/common/dmi.h index f3dda83e..f69fdc21 100644 --- a/hardinfo2/arch/linux/common/dmi.h +++ b/hardinfo2/arch/linux/common/dmi.h @@ -67,7 +67,6 @@ gboolean dmi_get_info_dmidecode() continue; temp = g_strconcat("dmidecode -s ", info->param, NULL); - if ((dmi_pipe = popen(temp, "r"))) { g_free(temp); @@ -82,6 +81,7 @@ gboolean dmi_get_info_dmidecode() info->name, buffer); } else { + g_free(temp); dmi_failed = TRUE; break; } |