diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-04-04 21:37:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-04-04 21:37:25 +0100 |
commit | 2760e5c03db15d0fdaee2948cd3bc3384c871c4d (patch) | |
tree | 7d76eb87eba498f2e5324c7f287690da462dfe43 | |
parent | f44c27071ebedd81c69c768010ed5332964ca0bd (diff) |
valgrind: fix mem leak
-rw-r--r-- | sal/qa/osl/process/osl_Thread.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sal/qa/osl/process/osl_Thread.cxx b/sal/qa/osl/process/osl_Thread.cxx index 724cdbef2e10..3b021a497db6 100644 --- a/sal/qa/osl/process/osl_Thread.cxx +++ b/sal/qa/osl/process/osl_Thread.cxx @@ -2098,6 +2098,8 @@ namespace osl_ThreadData cData1 == 'a' && cData2 == 'b' && aChar == 'o' ); + delete [] pc2; + delete [] pc; } CPPUNIT_TEST_SUITE(setData); @@ -2146,6 +2148,7 @@ namespace osl_ThreadData cData1 == 'c' && cData2 == 'd' && aChar == 'i' ); + delete [] pc; } // setData then change the value in the address data pointer points, |