Skip to content

Commit

Permalink
ofproto-dpif-xlate: Fix the memory leak in netflow.
Browse files Browse the repository at this point in the history
The memory leak was triggered each time on
creating a netflow and subsequently deleting it.

Signed-off-by: Sha Zhang <zhangsha.zhang@huawei.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
  • Loading branch information
Sha Zhang authored and blp committed Apr 24, 2017
1 parent 0e24a34 commit a03263a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ofproto/ofproto-dpif-xlate.c
Expand Up @@ -1113,6 +1113,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);
Expand Down

0 comments on commit a03263a

Please sign in to comment.