https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88689
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: --- https://github.com/gcc-mirror/gcc/blob/gcc-8_2_0-release/libstdc++-v3/include/bits/stl_list.h#L1900 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 this->_M_create_node(std::forward(__args)). 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 } 1774#endif