aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/arch/linux/common/modules.h
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2007-06-30 20:57:40 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2007-06-30 20:57:40 +0000
commitc54d47775818f19297e03e2f1b1b0031d77878fb (patch)
treefffcd76ba9551fc1f89d65ff058b6312d4b08d1c /hardinfo2/arch/linux/common/modules.h
parentfe0debc88fd70af16cbcff8da3cbe431939264ff (diff)
Hrm. Memleaks still not plugged correctly. Reverting.
Diffstat (limited to 'hardinfo2/arch/linux/common/modules.h')
-rw-r--r--hardinfo2/arch/linux/common/modules.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/hardinfo2/arch/linux/common/modules.h b/hardinfo2/arch/linux/common/modules.h
index bbde818a..fd5f0fa1 100644
--- a/hardinfo2/arch/linux/common/modules.h
+++ b/hardinfo2/arch/linux/common/modules.h
@@ -37,8 +37,9 @@ scan_modules_do(void)
if (module_list) {
g_free(module_list);
- module_list = NULL;
}
+
+ module_list = g_strdup("");
g_hash_table_foreach_remove(moreinfo, remove_module_devices, NULL);
@@ -99,7 +100,7 @@ scan_modules_do(void)
/* append this module to the list of modules */
module_list = g_strdup_printf("%s$%s$%s=%s\n",
- module_list ? (char*)idle_free(module_list) : "",
+ module_list,
hashkey,
modname,
description ? description : "");