[RTEMS Project] #4421: DesiredSymbols.cc: Resource leak error spotted by Coverity

RTEMS trac trac at rtems.org
Mon May 17 16:48:44 UTC 2021


#4421: DesiredSymbols.cc: Resource leak error spotted by Coverity
------------------------+--------------------
  Reporter:  Ryan Long  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  normal     |  Milestone:  6.1
 Component:  tool       |    Version:  6
  Severity:  normal     |   Keywords:
Blocked By:             |   Blocking:
------------------------+--------------------
 CID 1503018: Resource leak in load().
 {{{
    13. alloc_fn: Storage is returned from allocation function operator
 new.
    14. noescape: Resource new Coverage::SymbolInformation is not freed or
 pointed-to in operator =. [show details]
    CID 1503018 (#2 of 2): Resource leak (RESOURCE_LEAK)15. leaked_storage:
 Failing to save or free storage allocated by new
 Coverage::SymbolInformation leaks it.
 104          set[sym.name()] = *(new SymbolInformation);
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/4421>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list