[RTEMS Project] #4422: ReportsBase.cc: Resource leak error spotted by Coverity

RTEMS trac trac at rtems.org
Mon May 17 16:50:30 UTC 2021


#4422: ReportsBase.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 1503711: Resource leak in WriteSummaryReport().
 {{{
 548    fprintf(
 549      report,
 550      "Percentage branch paths covered  : %4.4g\n",
 551      100.0 - percentageBranches
 552    );
 553  }
    CID 1503711 (#1 of 1): Resource leak (RESOURCE_LEAK)34. leaked_storage:
 Variable report going out of scope leaks the storage it points to.
 554}
 555
 }}}

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


More information about the bugs mailing list