vlib: Counter free needs to NULL the allocated counter vector 91/37391/2
authorNeale Ranns <neale@graphiant.com>
Thu, 13 Oct 2022 05:39:11 +0000 (05:39 +0000)
committerOle Tr�an <otroan@employees.org>
Mon, 17 Oct 2022 05:43:14 +0000 (05:43 +0000)
commit80c0ae24378f249b3be9a02774d844c13143cd99
treec812e04785c8b6c04903c45e0548e0b538a79e99
parent368dab36991a875a62b01bbd66940b419146a911
vlib: Counter free needs to NULL the allocated counter vector

otherwise the next time the counter is validated this is dangling.

Type: fix
Fixes: 58fd481d73

Signed-off-by: Neale Ranns <neale@graphiant.com>
Change-Id: Ifa8d5ff27175cf6dfb30cbf023fa3251fe5c780e
src/plugins/unittest/counter_test.c
src/vlib/counter.c