[RTEMS Project] #4498: libelftc_dem_gnu3.c: Resource leak spotted by Coverity

RTEMS trac trac at rtems.org
Tue Aug 17 15:02:12 UTC 2021


#4498: libelftc_dem_gnu3.c: Resource leak 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:
------------------------+--------------------
 Upstream issue [https://sourceforge.net/p/elftoolchain/tickets/607/]

 CID 1305425: Resource leak
 {{{
 2913                if (!vector_str_push(&v.ext_name, ddata->cur, len))
     CID 1305425 (#1 of 1): Resource leak (RESOURCE_LEAK)48.
 leaked_storage: Variable exp_str going out of scope leaks the storage it
 points to.
 2914                        return (0);
 }}}

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


More information about the bugs mailing list