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:
Caolán McNamara 2022-08-22 09:49:24 +01:00
parent 91597052be
commit 82406c37d4

View file

@ -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();