Opened on 05/17/21 at 16:20:07
Closed on 06/04/21 at 17:23:22
#4418 closed defect (fixed)
GcovData.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 1399610: Resource leak in readFrame().
250 newFunction = new GcovFunctionData; 5. noescape: Resource newFunction is not freed or pointed-to in readFunctionFrame. [show details] 6. Condition !this->readFunctionFrame(header, gcovFile, newFunction), taking true branch. 251 if ( !readFunctionFrame(header, gcovFile, newFunction) ){ 252 fprintf( stderr, "Error while reading FUNCTION from gcov file...\n" ); CID 1399610 (#1 of 1): Resource leak (RESOURCE_LEAK)7. leaked_storage: Variable newFunction going out of scope leaks the storage it points to. 253 return false; 254 }
Change History (2)
comment:1 Changed on 05/18/21 at 15:54:12 by Ryan Long
Keywords: | Coverity added |
---|
comment:2 Changed on 06/04/21 at 17:23:22 by Ryan Long <ryan.long@…>
Owner: | set to Ryan Long <ryan.long@…> |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
In 08d9f37/rtems-tools: