summaryrefslogtreecommitdiff
path: root/o3tl
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2014-05-01 23:42:49 +1000
committerChris Sherlock <chris.sherlock79@gmail.com>2014-05-02 00:18:10 +1000
commit8bf0b9536cb33dfcce8a811b70c2ead285300f3f (patch)
tree56f13689d680853b83b14efa0218e278f052584c /o3tl
parentcedbbe2f78a6a07d79b43d71f36738b46cf62c38 (diff)
coverity#1209779 & coverity#1209780 Resource leak
Have the testBasics() function clean up after itself - delete p2 and p4 at the end of the function. Change-Id: Ib0c732e1962da94fde0e0da307f610dd36f49eda
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 5f068d998ca0..e3803557b787 100644
--- a/o3tl/qa/test-sorted_vector.cxx
+++ b/o3tl/qa/test-sorted_vector.cxx
@@ -68,6 +68,8 @@ public:
CPPUNIT_ASSERT( aVec.erase(p2) == 0 );
aVec.DeleteAndDestroyAll();
+ delete p2;
+ delete p4;
}
void testErase()