cid#1500700 silence Resource leak
Change-Id: I606583919bceac98b480f3821c349069611808b2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138662 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
parent
91597052be
commit
82406c37d4
1 changed files with 1 additions and 0 deletions
|
@ -693,6 +693,7 @@ RegError ORegistry::openKey(RegKeyHandle hKey, std::u16string_view keyName,
|
|||
|
||||
std::unique_ptr< ORegKey > p(new ORegKey(path, this));
|
||||
i = m_openKeyTable.insert(std::make_pair(path, p.get())).first;
|
||||
// coverity[leaked_storage : FALSE] - ownership transferred to m_openKeyTable
|
||||
p.release();
|
||||
} else {
|
||||
i->second->acquire();
|
||||
|
|
Loading…
Reference in a new issue