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/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242967

            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=3D210310&action=
=3Dedit
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 attac=
hed
a patch to free the allocated memory before the function returns.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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