diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2007-07-05 19:21:21 +0000 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2007-07-05 19:21:21 +0000 |
commit | cdc40b11f4d7a3050bda164b2d92afc23616b7f9 (patch) | |
tree | 03cd201e20016a39a60e875e591b1d969d68f425 /hardinfo2/arch/linux/common/devmemory.h | |
parent | ed4d0b93832732a199f4fb07c70350401f2eaceb (diff) |
Cleanups. Plug most of the memleaks.
Diffstat (limited to 'hardinfo2/arch/linux/common/devmemory.h')
-rw-r--r-- | hardinfo2/arch/linux/common/devmemory.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hardinfo2/arch/linux/common/devmemory.h b/hardinfo2/arch/linux/common/devmemory.h index 780ab12f..5eafe599 100644 --- a/hardinfo2/arch/linux/common/devmemory.h +++ b/hardinfo2/arch/linux/common/devmemory.h @@ -27,8 +27,9 @@ static void __scan_memory() if (offset == -1) { /* gah. linux 2.4 adds three lines of data we don't need in /proc/meminfo */ - offset = strstr(idle_free(module_call_method("computer::getOSKernel")), - "Linux 2.4") ? 3 : 0; + gchar *os_kernel = module_call_method("computer::getOSKernel"); + offset = strstr(os_kernel, "Linux 2.4") ? 3 : 0; + g_free(os_kernel); } g_file_get_contents("/proc/meminfo", &meminfo, NULL, NULL); |