vlib: Counter free needs to NULL the allocated counter vector 06/37406/1
authorNeale Ranns <neale@graphiant.com>
Thu, 13 Oct 2022 05:39:11 +0000 (05:39 +0000)
committerNeale Ranns <neale@graphiant.com>
Mon, 17 Oct 2022 05:44:34 +0000 (05:44 +0000)
commit994d86f70e1957b30d18eebdd6a06634153b2308
tree92d2dd6f8bba5798e85859e489e74351d4c5a350
parent13c7e8f7a1d89076c06cc383e1a4049ed88d6439
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
(cherry picked from commit 80c0ae24378f249b3be9a02774d844c13143cd99)
src/plugins/unittest/counter_test.c
src/vlib/counter.c