#4422 closed defect (fixed)

ReportsBase.cc: Resource leak error spotted by Coverity

Reported by: Ryan Long Owned by: Ryan Long <ryan.long@…>
Priority: normal Milestone: 6.1
Component: tool Version: 6
Severity: normal Keywords: Coverity
Cc: Blocked By:
Blocking:

Description

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

Change History (2)

comment:1 Changed on 05/18/21 at 15:56:04 by Ryan Long

Keywords: Coverity added

comment:2 Changed on 06/04/21 at 17:23:28 by Ryan Long <ryan.long@…>

Owner: set to Ryan Long <ryan.long@…>
Resolution: fixed
Status: newclosed

In 52780608/rtems-tools:

ReportsBase?.cc: Fix Resource leak

CID 1503711: Resource leak in WriteSummaryReport?().

Closes #4422

Note: See TracTickets for help on using tickets.