[Bug 242967] [patch] powerd free freqstr if sysctl fails

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Dec 29 19:47:25 UTC 2019


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: bugs at FreeBSD.org
          Reporter: chwoithe at 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.


More information about the freebsd-bugs mailing list