summaryrefslogtreecommitdiff
path: root/o3tl
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2014-05-01 23:49:05 +1000
committerChris Sherlock <chris.sherlock79@gmail.com>2014-05-02 00:18:11 +1000
commitf0bfee74d479f39d500d19c48380d88bdb3ad93d (patch)
tree5de2c4fe93bb0118ef6efaab095384e4b12048bf /o3tl
parent8bf0b9536cb33dfcce8a811b70c2ead285300f3f (diff)
coverity#1209778 & coverity#1209777 Resource leak
Have testBasics_FindPtr() cleanup after itself by deleting p2 and p4. Change-Id: I88b5efd25941d135b743f759a8f27c1cdbcb43c0
Diffstat (limited to 'o3tl')
-rw-r--r--o3tl/qa/test-sorted_vector.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/o3tl/qa/test-sorted_vector.cxx b/o3tl/qa/test-sorted_vector.cxx
index e3803557b787..059c1bad208b 100644
--- a/o3tl/qa/test-sorted_vector.cxx
+++ b/o3tl/qa/test-sorted_vector.cxx
@@ -193,6 +193,8 @@ public:
CPPUNIT_ASSERT( aVec.size() == 3 );
aVec.DeleteAndDestroyAll();
+ delete p2;
+ delete p4;
}
void testErase_FindPtr()