mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 05:55:28 +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
|
||||
data(new unsigned char[TEST_DATA_SIZE]),
|
||||
buffer(NULL)
|
||||
{ }
|
||||
{
|
||||
memset(data, 0, TEST_DATA_SIZE);
|
||||
}
|
||||
~ FDTest() {
|
||||
delete[] data;
|
||||
delete[] buffer;
|
||||
|
Reference in New Issue
Block a user