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: b...@freebsd.org
          Reporter: chwoi...@yahoo.com

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.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to