[RTEMS Project] #4300: rtl-shell.c: Resource leak error spotted by Coverity

RTEMS trac trac at rtems.org
Thu Mar 4 17:07:35 UTC 2021


#4300: rtl-shell.c: Resource leak error spotted by Coverity
-----------------------+---------------------
 Reporter:  Ryan Long  |       Owner:  (none)
     Type:  defect     |      Status:  new
 Priority:  normal     |   Milestone:  6.1
Component:  lib/dl     |     Version:  6
 Severity:  normal     |  Resolution:
 Keywords:             |  Blocked By:
 Blocking:             |
-----------------------+---------------------

Comment (by Ryan Long):

 {{{
 739    if (unresolved != 0)
 740    {
 741      rtems_printf (printer, "warning: unresolved symbols present\n");
    CID 1444140 (#3 of 3): Resource leak (RESOURCE_LEAK)24. leaked_storage:
 Variable handle going out of scope leaks the storage it points to.
 742      return 1;
 743    }
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/4300#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list