[PATCH] coverity#705747: Resource leak

Julien Nabet (via Code Review) gerrit at gerrit.libreoffice.org
Thu Mar 14 13:47:59 PDT 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/2736

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/36/2736/1

coverity#705747: Resource leak

Change-Id: Ifc071261ce5697355b904fbd12272b27c04183e4
---
M sw/source/core/text/pormulti.cxx
1 file changed, 1 insertion(+), 0 deletions(-)



diff --git a/sw/source/core/text/pormulti.cxx b/sw/source/core/text/pormulti.cxx
index 20a07b7..12cd6e7 100644
--- a/sw/source/core/text/pormulti.cxx
+++ b/sw/source/core/text/pormulti.cxx
@@ -2328,6 +2328,7 @@
         }
         return pTmp;
     }
+    delete (pCreate);
     return pRest;
 }
 

-- 
To view, visit https://gerrit.libreoffice.org/2736
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifc071261ce5697355b904fbd12272b27c04183e4
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Julien Nabet <serval2412 at yahoo.fr>



More information about the LibreOffice mailing list