From 09f341be84ca2ab580345af6922a983ea57d4c2b Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sun, 8 Jun 2008 23:34:03 +0000 Subject: Plug small memory leak --- hardinfo2/arch/linux/common/dmi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hardinfo2/arch/linux') 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; } -- cgit v1.2.3