FreeBSD Bugzilla – Attachment 210310 Details for
Bug 242967
[patch] powerd free freqstr if sysctl fails
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to free freqstr if sysctl fails
patch (text/plain), 485 bytes, created by
Hans Christian Woithe
on 2019-12-29 19:47:25 UTC
(
hide
)
Description:
patch to free freqstr if sysctl fails
Filename:
MIME Type:
Creator:
Hans Christian Woithe
Created:
2019-12-29 19:47:25 UTC
Size:
485 bytes
patch
obsolete
>Index: usr.sbin/powerd/powerd.c >=================================================================== >--- usr.sbin/powerd/powerd.c (revision 356180) >+++ usr.sbin/powerd/powerd.c (working copy) >@@ -196,8 +196,10 @@ > return (-1); > if ((freqstr = malloc(len)) == NULL) > return (-1); >- if (sysctl(levels_mib, 4, freqstr, &len, NULL, 0)) >+ if (sysctl(levels_mib, 4, freqstr, &len, NULL, 0)) { >+ free(freqstr); > return (-1); >+ } > > *numfreqs = 1; > for (p = freqstr; *p != '\0'; p++)
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 242967
: 210310