#4496 new defect

libelftc_dem_arm.c: Resource leak spotted by Coverity

Reported by: Ryan Long Owned by:
Priority: normal Milestone: 7.1
Component: tool Version: 6
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

Upstream ticket https://sourceforge.net/p/elftoolchain/tickets/607

CID 1262518: Resource leak

229
   CID 1262518 (#1 of 1): Resource leak (RESOURCE_LEAK)56. leaked_storage: Variable arg going out of scope leaks the storage it points to.
230        return (rtn);
231}

CID 1262519: Resource leak

 958        if (VEC_PUSH_STR(&d->vec, "::operator ") == false)
      CID 1262529: Resource leak (RESOURCE_LEAK) [select issue]
    CID 1262519 (#1 of 1): Resource leak (RESOURCE_LEAK)18. leaked_storage: Variable to_str going out of scope leaks the storage it points to.
 959                return (false);

CID 1262529: Resource leak

 958        if (VEC_PUSH_STR(&d->vec, "::operator ") == false)
      CID 1262519: Resource leak (RESOURCE_LEAK) [select issue]
    CID 1262529 (#1 of 1): Resource leak (RESOURCE_LEAK)19. leaked_storage: Variable from_str going out of scope leaks the storage it points to.
 959                return (false);

Change History (2)

comment:1 Changed on 08/17/21 at 15:03:11 by Ryan Long

Version: 6

comment:2 Changed on 12/16/21 at 15:55:24 by Joel Sherrill

Milestone: 6.17.1
Note: See TracTickets for help on using tickets.