From aaedf14175c841fa74340f9f0af19d722756628d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 18 Jul 2014 14:02:53 +0200 Subject: [PATCH] cid#705673 Resource leak Change-Id: Ib4cf76e941541b7f09b6a0dfbdab2a2604a0311d --- registry/source/registry.cxx | 1 + 1 file changed, 1 insertion(+) 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; }