Opened on 05/17/21 at 16:28:49
Closed on 06/04/21 at 17:23:19
#4419 closed defect (fixed)
TraceReaderLogQEMU.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 1399615: Resource leak in processFile().
113 // 114 // Discard Header section 115 // 6. noescape: Resource logFile is not freed or pointed-to in ReadUntilFound. [show details] 7. Condition !ReadUntilFound(logFile, "----------------"), taking true branch. 116 if (! ReadUntilFound( logFile, QEMU_LOG_SECTION_END ) ) { 117 fprintf( stderr, "Unable to locate end of log file header\n" ); CID 1399615 (#2 of 2): Resource leak (RESOURCE_LEAK)8. leaked_storage: Variable logFile going out of scope leaks the storage it points to. 118 return false;
Change History (2)
comment:1 Changed on 05/18/21 at 15:54:42 by Ryan Long
Keywords: | Coverity added |
---|
comment:2 Changed on 06/04/21 at 17:23:19 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 dfe012d/rtems-tools: