[Bug libstdc++/88689] New: Resource leak.. Leaked storage

venkateshprabu at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Jan 4 05:46:00 GMT 2019


            Bug ID: 88689
           Summary: Resource leak.. Leaked storage
           Product: gcc
           Version: 8.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: venkateshprabu at gmail dot com
  Target Milestone: ---


Is this false positive by coverity ?

Coverity report:

1766     template<typename... _Args>
1767       void
1768       _M_insert(iterator __position, _Args&&... __args)
1769       {
        1. alloc_fn: Storage is returned from allocation function
_M_create_node. [show details]
        2. var_assign: Assigning: __tmp = storage returned from
1770         _Node* __tmp = _M_create_node(std::forward<_Args>(__args)...);
        3. noescape: Resource __tmp is not freed or pointed-to in unimplemented
function _M_hook.
1771         __tmp->_M_hook(__position._M_node);
1772         this->_M_inc_size(1);

CID 5519463 (#79-1 of 79): Resource leak (RESOURCE_LEAK)
4. leaked_storage: Variable __tmp going out of scope leaks the storage it
points to.
1773       }

More information about the Gcc-bugs mailing list