cid#705673 Resource leak
Change-Id: Ib4cf76e941541b7f09b6a0dfbdab2a2604a0311d
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user