summaryrefslogtreecommitdiff
path: root/registry
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-07-18 14:02:53 +0200
committerNoel Grandin <noel@peralex.com>2014-07-18 14:24:20 +0200
commitaaedf14175c841fa74340f9f0af19d722756628d (patch)
treef45890eede83bd25bc3d899b4f1acf79013fcad4 /registry
parentdac4af0e0f7f167850a5b30ae914947634213d22 (diff)
cid#705673 Resource leak
Change-Id: Ib4cf76e941541b7f09b6a0dfbdab2a2604a0311d
Diffstat (limited to 'registry')
-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;
}