[RTEMS Project] #4297: rtems-fdt.c: Resource leak error spotted by Coverity

RTEMS trac trac at rtems.org
Thu Mar 4 15:59:42 UTC 2021


#4297: rtems-fdt.c: Resource leak error spotted by Coverity
------------------------+--------------------
  Reporter:  Ryan Long  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  normal     |  Milestone:  6.1
 Component:  lib        |    Version:  6
  Severity:  normal     |   Keywords:
Blocked By:             |   Blocking:
------------------------+--------------------
 CID 1437645: Resource leak in rtems_fdt_load().

 {{{
 607  if (fe < 0)
 608  {
 609    free (blob);
 610    close (bf);
 611    return fe;
 612  }
 613
    CID 1437645 (#1-2 of 2): Resource leak (RESOURCE_LEAK)33.
 leaked_handle: Handle variable bf going out of scope leaks the handle.
 614  return 0;
 615}
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/4297>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list