Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
vlib: Counter free needs to NULL the allocated counter vector
[vpp.git]
/
src
/
plugins
/
unittest
/
counter_test.c
diff --git
a/src/plugins/unittest/counter_test.c
b/src/plugins/unittest/counter_test.c
index
65c03fe
..
71f8f93
100644
(file)
--- a/
src/plugins/unittest/counter_test.c
+++ b/
src/plugins/unittest/counter_test.c
@@
-89,6
+89,9
@@
test_simple_counter_expand (vlib_main_t *vm)
epoch = new_epoch;
}
+ vlib_free_simple_counter (&counter);
+ vlib_validate_simple_counter (&counter, 0);
+
return 0;
}
@@
-136,6
+139,9
@@
test_combined_counter_expand (vlib_main_t *vm)
epoch = new_epoch;
}
+ vlib_free_combined_counter (&counter);
+ vlib_validate_combined_counter (&counter, 0);
+
return 0;
}