Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Dec 2019 19:47:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 242967] [patch] powerd free freqstr if sysctl fails
Message-ID:  <bug-242967-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

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

help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-242967-227>