[haiku-bugs] [Haiku] #10220: Added virtual descriptor to DoublyLinkedListImpl, PackageSymlink and PackageDirectory

  • From: "Ezodev" <trac@xxxxxxxxxxxx>
  • Date: Mon, 18 Nov 2013 20:47:42 -0000

#10220: Added virtual descriptor to DoublyLinkedListImpl, PackageSymlink and
PackageDirectory
-----------------------+------------------------------
 Reporter:  Ezodev     |        Owner:  nobody
     Type:  bug        |       Status:  new
 Priority:  normal     |    Milestone:  R1
Component:  - General  |      Version:  R1/Development
 Keywords:  gci2013    |   Blocked By:
 Blocking:             |  Has a Patch:  0
 Platform:  All        |
-----------------------+------------------------------
 empty virtual destructor in DoublyLinkedListImpl:

 There is some derivatives,  such as PackageNode. If someone assign ptr to
 PackageNode to DoublyLinkedListImpl<PackageNode>* there will be memleak.

 Virtual destructors in PackegeSymlink and PackageDirectory:
 I don't know if they have childs, but they could have.

 I've fount this in Coverity CID:1108472, wanted to fix it but it seems
 someone was faster, and there is virtual destructor in PackageNode class.

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

Other related posts: