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@yahoo.fr>
Context
- [PATCH] coverity#983036/37/38: Resource leak · Julien Nabet (via Code Review)
 
   
 
  Privacy Policy |
  
Impressum (Legal Info) |
  
Copyright information: Unless otherwise specified, all text and images
  on this website are licensed under the
  
Creative Commons Attribution-Share Alike 3.0 License.
  This does not include the source code of LibreOffice, which is
  licensed under the Mozilla Public License (
MPLv2).
  "LibreOffice" and "The Document Foundation" are
  registered trademarks of their corresponding registered owners or are
  in actual use as trademarks in one or more countries. Their respective
  logos and icons are also subject to international copyright laws. Use
  thereof is explained in our 
trademark policy.