[PATCH] coverity#983036/37/38: Resource leak

Julien Nabet (via Code Review) gerrit at gerrit.libreoffice.org
Tue May 7 15:37:11 PDT 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/3819

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/19/3819/1

coverity#983036/37/38: Resource leak

Change-Id: I8a2c079a60cc06ca82d9f516cf009359a0c083a7
---
M o3tl/qa/test-sorted_vector.cxx
1 file changed, 3 insertions(+), 0 deletions(-)



diff --git a/o3tl/qa/test-sorted_vector.cxx b/o3tl/qa/test-sorted_vector.cxx
index 8e9e719..ee2e818 100644
--- a/o3tl/qa/test-sorted_vector.cxx
+++ b/o3tl/qa/test-sorted_vector.cxx
@@ -98,6 +98,7 @@
         aVec.insert(p3);
         aVec.DeleteAndDestroyAll();
         CPPUNIT_ASSERT( aVec.size() == 0 );
+        delete p4;
     }
 
     void testInsertRange()
@@ -131,6 +132,7 @@
 
         CPPUNIT_ASSERT( aVec.lower_bound(p1) == aVec.begin() );
         CPPUNIT_ASSERT( aVec.lower_bound(p4) == aVec.end() );
+        delete p4;
     }
 
     void testBasics_FindPtr()
@@ -239,6 +241,7 @@
 
         aVec.DeleteAndDestroyAll();
         CPPUNIT_ASSERT( aVec.size() == 0 );
+        delete p4;
     }
 
 

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

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



More information about the LibreOffice mailing list