https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242967
Bug ID: 242967
Summary: [patch] powerd free freqstr if sysctl fails
Product: Base System
Version: 12.1-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: bin
Assignee: [email protected]
Reporter: [email protected]
Created attachment 210310
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=210310&action=edit
patch to free freqstr if sysctl fails
In the event that the (second) sysctl fails in read_freqs(), the memory
allocated for freqstr is not freed before the function returns. I've attached
a patch to free the allocated memory before the function returns.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"