[RTEMS Project] #4418: GcovData.cc: Resource leak error spotted by Coverity
RTEMS trac
trac at rtems.org
Mon May 17 16:20:07 UTC 2021
#4418: GcovData.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 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 }
}}}
--
Ticket URL: <http://devel.rtems.org/ticket/4418>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list