FreeBSD Bugzilla – Attachment 105540 Details for
Bug 146033
x11/gnome-applets: cpufreq-applet memory leak [PATCH]
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
cpufreq.diff
cpufreq.diff (text/x-patch), 1.37 KB, created by
Bryan Venteicher
on 2010-05-03 03:45:11 UTC
(
hide
)
Description:
cpufreq.diff
Filename:
MIME Type:
Creator:
Bryan Venteicher
Created:
2010-05-03 03:45:11 UTC
Size:
1.37 KB
patch
obsolete
>--- a/files/patch-cpufreq-freebsd 2010-04-25 00:24:34.700967984 -0500 >+++ b/files/patch-cpufreq-freebsd 2010-04-25 00:24:47.166172634 -0500 >@@ -219,7 +219,7 @@ > cpufreq_utils_display_error (const gchar *message, > --- cpufreq/src/cpufreq-monitor-sysctl.c.orig Wed Feb 28 14:03:58 2007 > +++ cpufreq/src/cpufreq-monitor-sysctl.c Wed Feb 28 14:28:47 2007 >-@@ -0,0 +1,176 @@ >+@@ -0,0 +1,185 @@ > +/* > + * Copyright (C) 2001, 2002 Free Software Foundation > + * >@@ -305,6 +305,9 @@ > + fmax = atoi ((gchar *) list->data); > + fmin = atoi ((gchar *) g_list_nth_data (list, (g_list_length (list) - 1))); > + >++ g_list_foreach (list, (GFunc) g_free, NULL); >++ g_list_free (list); >++ > + g_object_get (G_OBJECT (monitor), "cpu", &mon_cpu, NULL); > + len = sizeof (ifreq); > + freq_oid = g_strdup_printf ("dev.cpu.%d.freq", 0); >@@ -314,6 +317,8 @@ > + return FALSE; > + } > + >++ g_free (freq_oid); >++ > + ifreq *= 1000; > + > + if (ifreq == fmax) >@@ -330,6 +335,8 @@ > + "max-frequency", fmax, > + NULL); > + >++ g_free (governor); >++ > + return TRUE; > +} > + >@@ -356,8 +363,10 @@ > + return NULL; > + > + levels = g_malloc (len); >-+ if (sysctl (mib, 4, levels, &len, NULL, 0) == -1) >++ if (sysctl (mib, 4, levels, &len, NULL, 0) == -1) { >++ g_free (levels); > + return NULL; >++ } > + > + levelsp = g_strsplit (levels, " ", 0); > + g_free (levels);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 146033
:
105539
| 105540