cid#705673 Resource leak
Change-Id: Ib4cf76e941541b7f09b6a0dfbdab2a2604a0311d
This commit is contained in:
parent
dac4af0e0f
commit
aaedf14175
1 changed files with 1 additions and 0 deletions
|
@ -118,6 +118,7 @@ static RegError REGISTRY_CALLTYPE createRegistry(rtl_uString* registryName,
|
||||||
ORegistry* pReg = new ORegistry();
|
ORegistry* pReg = new ORegistry();
|
||||||
if ((ret = pReg->initRegistry(registryName, REG_CREATE)))
|
if ((ret = pReg->initRegistry(registryName, REG_CREATE)))
|
||||||
{
|
{
|
||||||
|
delete pReg;
|
||||||
*phRegistry = NULL;
|
*phRegistry = NULL;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue