@@ -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
From: Shashank Ram [mailto:rams@vmware.com]
Sent: 2017年3月24日 9:58
To: zhangsha (A) <zhangsha.zhang@huawei.com>; dev@openvswitch.org
Cc: gaoxiaoqiu <gaoxiaoqiu@huawei.com>
Subject: Re: [ovs-dev] [PATCH] Fix the memleak in Netflow. The memleak was trigged each time creating a netflow and deleting it then.
Hi, could you format the commit message to have the title and description in separate lines as shown below.
"""
ofproto-dpif-xlate.c: Fix a memory leak in Netflow
The memory leak was triggered each time on
creating a netflow and subsequently deleting it.
Signed-off-by: Sha Zhang <zhangsha.zhang@huawei.com<mailto:zhangsha.zhang@huawei.com>>
"""
Thanks,
Shashank
________________________________
From: ovs-dev-bounces@openvswitch.org<mailto:ovs-dev-bounces@openvswitch.org> <ovs-dev-bounces@openvswitch.org<mailto:ovs-dev-bounces@openvswitch.org>> on behalf of zhangsha (A) <zhangsha.zhang@huawei.com<mailto:zhangsha.zhang@huawei.com>>
Sent: Thursday, March 23, 2017 6:52 PM
To: dev@openvswitch.org<mailto:dev@openvswitch.org>
Cc: gaoxiaoqiu
Subject: [ovs-dev] [PATCH] Fix the memleak in Netflow. The memleak was trigged each time creating a netflow and deleting it then.
From d78ceaabadf6c3e684d5260ef5af9d5700c11247 Mon Sep 17 00:00:00 2001
From: Sha Zhang <zhangsha.zhang@huawei.com<mailto:zhangsha.zhang@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@huawei.com<mailto:zhangsha.zhang@huawei.com>>
---
ofproto/ofproto-dpif-xlate.c | 1 +
1 file changed, 1 insertion(+)
@@ -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);