[ovs-git] Open vSwitch: dpif-netdev: Fix memory leak. (master)

dev at openvswitch.org dev at openvswitch.org
Fri Feb 21 22:09:31 UTC 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  71c24bb0f881fde3304de61e19bb4e0c5512da30 (commit)
       via  3754832be4195ef5c01ba2af2e4b50b6f8df91bd (commit)
      from  0c0c32d825d0fa392db834e7d57864e878134a72 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 71c24bb0f881fde3304de61e19bb4e0c5512da30
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=71c24bb0f881fde3304de61e19bb4e0c5512da30
Author: Alex Wang <alexw at nicira.com>
		
dpif-netdev: Fix memory leak.
		
In dpif_netdev_flow_del() and dp_netdev_port_input(), the
referenced 'netdev_flow' is not un-referenced.  This causes
the leak of the struct's memory.

This commit fixes the above issue by calling dp_netdev_flow_unref()
after using the reference.

Signed-off-by: Alex Wang <alexw at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


commit 3754832be4195ef5c01ba2af2e4b50b6f8df91bd
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=3754832be4195ef5c01ba2af2e4b50b6f8df91bd
Author: Alex Wang <alexw at nicira.com>
		
dpif-netdev: Call ovs_refcount_destroy() before free().
		
This commit makes dp_netdev_flow_unref() and dp_netdev_actions_unref()
invoke the ovs_refcount_destroy() before freeing the corresponding
pointer.

Signed-off-by: Alex Wang <alexw at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 lib/dpif-netdev.c |    4 ++++
 1 file changed, 4 insertions(+)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list