diff options
author | Simon Quigley <tsimonq2@ubuntu.com> | 2017-06-19 14:38:43 -0500 |
---|---|---|
committer | Simon Quigley <tsimonq2@ubuntu.com> | 2017-06-19 14:38:43 -0500 |
commit | 7aeb5ac87c6105bd8fcc9b1fd12e37ba1550f587 (patch) | |
tree | cab8ef3e10d3a33a2033538b6088e107f0a86dcd /arch/linux/common/devmemory.h | |
parent | a9d469b1b48a8446dc9b9fd987b6af83a60ed796 (diff) |
Import Upstream version 0.4.2.2
Diffstat (limited to 'arch/linux/common/devmemory.h')
-rw-r--r-- | arch/linux/common/devmemory.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/linux/common/devmemory.h b/arch/linux/common/devmemory.h index 780ab12f..5eafe599 100644 --- a/arch/linux/common/devmemory.h +++ b/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); |