summaryrefslogtreecommitdiff
path: root/sal/qa/osl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-04-04 21:37:25 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-04-04 21:37:25 +0100
commiteb8dc1fcbe364adac31f8dfb0b8173312fc3a518 (patch)
tree6da6baa70d74a263d47cb9eaadddbd211660d33c /sal/qa/osl
parente6d54bd895aeb6d452856f1228b437e2660764e0 (diff)
valgrind: fix mem leak
Diffstat (limited to 'sal/qa/osl')
-rw-r--r--sal/qa/osl/process/osl_Thread.cxx3
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 724cdbef2..3b021a497 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,