[haiku-bugs] [Haiku] #9873: [Mail] Content.cpp: Potential memory leak in TTextView::AddQuote()

  • From: "mt" <trac@xxxxxxxxxxxx>
  • Date: Sun, 14 Jul 2013 11:28:46 -0000

#9873: [Mail] Content.cpp: Potential memory leak in TTextView::AddQuote()
-------------------------------+------------------------------
 Reporter:  mt                 |        Owner:  czeidler
     Type:  bug                |       Status:  new
 Priority:  normal             |    Milestone:  R1
Component:  Applications/Mail  |      Version:  R1/Development
 Keywords:                     |   Blocked By:
 Blocking:                     |  Has a Patch:  0
 Platform:  All                |
-------------------------------+------------------------------
 In TTextView::AddQuote(), return value of realloc() is assigned to the
 variable "target". So, if realloc() fails, the memory that is allocated to
 "target" might leak. Please see attached report.

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

Other related posts: