stats: memory leak in stat_validate_counter_vector 32/27932/1
authorSteven Luong <sluong@cisco.com>
Fri, 17 Jul 2020 16:09:16 +0000 (09:09 -0700)
committersteven luong <sluong@cisco.com>
Wed, 22 Jul 2020 15:41:43 +0000 (15:41 +0000)
commit9ba2ead1a707b0c5188674c93ad2a14a0b48511c
treec5a35efab12c99f8539080f7a34c060ac5d717d1
parentb1500e9fffa8af137804947f7836af615d1c555e
stats: memory leak in stat_validate_counter_vector

Free the existing vectors prior to losing them.

Type: fix
Ticket: VPPSUPP-94

Signed-off-by: Steven Luong <sluong@cisco.com>
Change-Id: Ic15f1fbc7a0c6c348065fc9759ee5d5c43013b91
Signed-off-by: Ole Troan <ot@cisco.com>
(cherry picked from commit e29fb5bf1b9ab87f4213d990377ea2604990135b)
src/vpp/stats/stat_segment.c