diff options
author | Mauro Sardara <msardara@cisco.com> | 2022-09-15 11:06:52 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2022-09-15 11:06:52 +0000 |
commit | df9f9d7967df41bf90628c2072419a21669fb9ce (patch) | |
tree | 9b7e2342bba3dd36240203c42697a79538c8228b /lib | |
parent | f7567c8987065582d4ffde710ec54b7abdb619a2 (diff) | |
parent | 2c5b861c8055ef68038273110ea81975e1c6b425 (diff) |
Merge "fix(strategy): fix memory leaks detected by valgrind in unit tests"
Diffstat (limited to 'lib')
-rw-r--r-- | lib/src/test/test_name.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/src/test/test_name.cc b/lib/src/test/test_name.cc index 35e636b63..dbeab96cc 100644 --- a/lib/src/test/test_name.cc +++ b/lib/src/test/test_name.cc @@ -31,9 +31,11 @@ protected: NameTest () : name_{}, name4_{}, name6_{} { + ipv6_prefix_bytes = {}; int rc = inet_pton (AF_INET6, ipv6_prefix, &ipv6_prefix_bytes.v6); EXPECT_EQ (rc, 1); + ipv4_prefix_bytes = {}; rc = inet_pton (AF_INET, ipv4_prefix, &ipv4_prefix_bytes.v4); EXPECT_EQ (rc, 1); |