Kaydet (Commit) dac4af0e authored tarafından Noel Grandin's avatar Noel Grandin

cid#705674 and cid#705675 Resource leak

Change-Id: Id97e5de8433cc5dc9cb72c0d447ce6af50eb4918
üst 0532c5a8
......@@ -514,6 +514,7 @@ REG_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_createRegistry(rtl_uString* registr
ORegistry* pReg = new ORegistry();
if ((ret = pReg->initRegistry(registryName, REG_CREATE)))
{
delete pReg;
*phRegistry = NULL;
return ret;
}
......@@ -563,6 +564,7 @@ REG_DLLPUBLIC RegError REGISTRY_CALLTYPE reg_openRegistry(rtl_uString* registryN
ORegistry* pReg = new ORegistry();
if ((_ret = pReg->initRegistry(registryName, accessMode)))
{
delete pReg;
*phRegistry = NULL;
return _ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment