[ovs-dev] [PATCH] bridge: Fix custom stats' counters leak.
Ilya Maximets
i.maximets at samsung.com
Mon Jan 22 15:50:36 UTC 2018
The caller takes ownership over allocated array of counters.
And it must free them.
CC: Michal Weglicki <michalx.weglicki at intel.com>
Fixes: 971f4b394c6e ("netdev: Custom statistics.")
Signed-off-by: Ilya Maximets <i.maximets at samsung.com>
---
vswitchd/bridge.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index d80da1c..02d97de 100644
--- a/vswitchd/bridge.c
+++ b/vswitchd/bridge.c
@@ -2432,6 +2432,7 @@ iface_refresh_stats(struct iface *iface)
free(values);
free(keys);
+ free(custom_stats.counters);
}
static void
--
2.7.4
More information about the dev
mailing list