stats: fix memory leakage when adding / deleting interfaces 59/20159/3
authorOle Troan <[email protected]>
Sun, 16 Jun 2019 21:26:56 +0000 (23:26 +0200)
committerDamjan Marion <[email protected]>
Tue, 18 Jun 2019 13:55:11 +0000 (13:55 +0000)
commitae945592b299b14b8d293b4c77b7d851a4f8ea11
tree9acf5d2a6fc0d1857e1748eca8d9eb76dd2d2fa4
parent4d0c663c0a63d3be6789185d6f60a4b4d1e7d207
stats: fix memory leakage when adding / deleting interfaces

This fixes two leaks in registering errors in the stats segment.
- The error name created by vlib_register_errors() was not freed.
- Duplicate error names (when interface readded) was added to the vector.

Change-Id: If5fe371e8059cf6678fc785cbf673707b4f4a655
Type: fix
Signed-off-by: Ole Troan <[email protected]>
src/vlib/error.c
src/vpp/stats/stat_segment.c