mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-03 15:35:17 +00:00
[2275] valgrind fixes: uninitialized memory
This commit is contained in:
committed by
JINMEI Tatuya
parent
1c4ec91a6f
commit
3d98322d24
@@ -34,7 +34,9 @@ class FDTest : public ::testing::Test {
|
|||||||
// We do not care what is inside, we just need it to be the same
|
// We do not care what is inside, we just need it to be the same
|
||||||
data(new unsigned char[TEST_DATA_SIZE]),
|
data(new unsigned char[TEST_DATA_SIZE]),
|
||||||
buffer(NULL)
|
buffer(NULL)
|
||||||
{ }
|
{
|
||||||
|
memset(data, 0, TEST_DATA_SIZE);
|
||||||
|
}
|
||||||
~ FDTest() {
|
~ FDTest() {
|
||||||
delete[] data;
|
delete[] data;
|
||||||
delete[] buffer;
|
delete[] buffer;
|
||||||
|
Reference in New Issue
Block a user