[ovs-dev] [PATCH] Fix the memleak in Netflow. The memleak was trigged each time creating a netflow and deleting it then.

zhangsha (A) zhangsha.zhang at huawei.com
Fri Mar 24 01:52:35 UTC 2017


>From d78ceaabadf6c3e684d5260ef5af9d5700c11247 Mon Sep 17 00:00:00 2001
From: Sha Zhang <zhangsha.zhang at huawei.com>
Date: Fri, 24 Mar 2017 22:32:50 +0800
Subject: [PATCH] Fix the memleak in Netflow. The memleak was trigged each time
creating a netflow and deleting it then.

Signed-off-by: Sha Zhang <zhangsha.zhang at huawei.com>
---
ofproto/ofproto-dpif-xlate.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c
index 7df92e5..d02d010 100644
--- a/ofproto/ofproto-dpif-xlate.c
+++ b/ofproto/ofproto-dpif-xlate.c
@@ -1143,6 +1143,7 @@ xlate_xbridge_remove(struct xlate_cfg *xcfg, struct xbridge *xbridge)
     mbridge_unref(xbridge->mbridge);
     dpif_sflow_unref(xbridge->sflow);
     dpif_ipfix_unref(xbridge->ipfix);
+    netflow_unref(xbridge->netflow);
     stp_unref(xbridge->stp);
     rstp_unref(xbridge->rstp);
     hmap_destroy(&xbridge->xports);
--
1.8.3.1


More information about the dev mailing list