Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 58886 Details for
Bug 92610
cpufreqd 1.2.2 leaks mem + fix
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix mem leaks
leak.patch (text/plain), 634 bytes, created by
Prakash Punnoor
on 2005-05-14 09:08:47 UTC
(
hide
)
Description:
fix mem leaks
Filename:
MIME Type:
Creator:
Prakash Punnoor
Created:
2005-05-14 09:08:47 UTC
Size:
634 bytes
patch
obsolete
>diff -Nud cpufreqd-1.2.2/main.c nvfreqd/main.c >--- cpufreqd-1.2.2/main.c 2004-10-25 13:04:27.000000000 +0200 >+++ nvfreqd/main.c 2005-05-13 12:12:59.066964000 +0200 >@@ -153,6 +172,7 @@ > > /* free configuration */ > free_config(configuration); >+ free(configuration); > > /* TODO: this call to close log shound not sit here... */ > closelog(); >@@ -423,6 +443,7 @@ > sleep(configuration->poll_interval); > } /* end loop */ > >+ free(_system); > return 0; > } > >@@ -506,7 +527,7 @@ > */ > int set_policy(profile *prof) { > FILE *fp; >- char *path = (char *)malloc(256); >+ char path[256]; > > if (!prof) > return -1;
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 92610
: 58886