diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-05-01 23:42:49 +1000 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-05-02 00:18:10 +1000 |
commit | 8bf0b9536cb33dfcce8a811b70c2ead285300f3f (patch) | |
tree | 56f13689d680853b83b14efa0218e278f052584c /basic | |
parent | cedbbe2f78a6a07d79b43d71f36738b46cf62c38 (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 'basic')
-rw-r--r-- | basic/qa/cppunit/basictest.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/basic/qa/cppunit/basictest.hxx b/basic/qa/cppunit/basictest.hxx index 3cf56691d72e..369f0dfbbb16 100644 --- a/basic/qa/cppunit/basictest.hxx +++ b/basic/qa/cppunit/basictest.hxx @@ -78,6 +78,8 @@ class MacroSnippet sSource = sCode; } } + + free(buffer); } } CPPUNIT_ASSERT_MESSAGE( "Source is empty", ( sSource.getLength() > 0 ) ); |