prom: fix stats vector leak 86/37586/3
authorFlorin Coras <fcoras@cisco.com>
Sun, 6 Nov 2022 23:27:01 +0000 (15:27 -0800)
committerDave Barach <openvpp@barachs.net>
Mon, 7 Nov 2022 15:57:50 +0000 (15:57 +0000)
Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I620447c9aa8606a125063cdd724bfe74f8a870f6

src/plugins/prom/prom.c

index 3e0fa3b..934e848 100644 (file)
@@ -177,6 +177,7 @@ retry:
        }
     }
   stat_segment_data_free (res);
+  vec_free (stats);
 
   return s;
 }