stats: memory leak in stat_validate_counter_vector 30/27930/1
authorSteven Luong <[email protected]>
Fri, 17 Jul 2020 16:09:16 +0000 (09:09 -0700)
committersteven luong <[email protected]>
Tue, 21 Jul 2020 14:18:55 +0000 (14:18 +0000)
commit7364e2195cb91050cb608c1b423305587984e2c0
treea98539b27b61e0d62322e87db30495a6e67d3ced
parent64b6dd7f8f120251e10ee84ff491beb6bae36e82
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 <[email protected]>
Change-Id: Ic15f1fbc7a0c6c348065fc9759ee5d5c43013b91
Signed-off-by: Ole Troan <[email protected]>
(cherry picked from commit e29fb5bf1b9ab87f4213d990377ea2604990135b)
src/vpp/stats/stat_segment.c