[haiku-bugs] [Haiku] #12706: BParameterGroup::Unflatten() leaks fName

  • From: "ttcoder" <trac@xxxxxxxxxxxx>
  • Date: Tue, 05 Apr 2016 12:48:31 -0000

#12706: BParameterGroup::Unflatten() leaks fName
----------------------------+------------------------------
 Reporter:  ttcoder         |        Owner:  Barrett
     Type:  bug             |       Status:  new
 Priority:  normal          |    Milestone:  R1
Component:  Kits/Media Kit  |      Version:  R1/Development
 Keywords:                  |   Blocked By:
 Blocking:                  |  Has a Patch:  0
 Platform:  All             |
----------------------------+------------------------------
 This sequence..
 
http://xref.plausible.coop/source/xref/haiku/src/kits/media/ParameterWeb.cpp#623

 creates a new BParameterGroup and immediately calls Unflatten() on it..
 But Unflatten() is not a well behaved citizen

 This means the original fName ("unnamed") is leaked, losing 8 bytes
 whenever the playback volume is queried or set

--
Ticket URL: <https://dev.haiku-os.org/ticket/12706>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: