dpif-netdev: Fix memory leak.
authorAlex Wang <alexw@nicira.com>
Fri, 21 Feb 2014 22:03:51 +0000 (14:03 -0800)
committerAlex Wang <alexw@nicira.com>
Fri, 21 Feb 2014 22:07:46 +0000 (14:07 -0800)
commit71c24bb0f881fde3304de61e19bb4e0c5512da30
treed3a8068f1dc79ec4a05713c3fba961cedcc93cb9
parent3754832be4195ef5c01ba2af2e4b50b6f8df91bd
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@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/dpif-netdev.c