summaryrefslogtreecommitdiff
path: root/registry
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-08-22 09:49:24 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-08-22 13:12:49 +0200
commit82406c37d4ff10453ebf2ed56dfe8ec961954aaf (patch)
treee8e4c688c471d9973782ff8eac6e514b46d7f770 /registry
parent91597052bea39720f5a557d30f7d687d4308e7a8 (diff)
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>
Diffstat (limited to 'registry')
-rw-r--r--registry/source/regimpl.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/registry/source/regimpl.cxx b/registry/source/regimpl.cxx
index f33dbc7d5ebb..5f5bf335edb4 100644
--- a/registry/source/regimpl.cxx
+++ b/registry/source/regimpl.cxx
@@ -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();