summaryrefslogtreecommitdiff
path: root/registry/source/registry.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'registry/source/registry.cxx')
-rw-r--r--registry/source/registry.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/registry/source/registry.cxx b/registry/source/registry.cxx
index d7d77b22002f..803372fa8028 100644
--- a/registry/source/registry.cxx
+++ b/registry/source/registry.cxx
@@ -118,6 +118,7 @@ static RegError REGISTRY_CALLTYPE createRegistry(rtl_uString* registryName,
ORegistry* pReg = new ORegistry();
if ((ret = pReg->initRegistry(registryName, REG_CREATE)))
{
+ delete pReg;
*phRegistry = NULL;
return ret;
}