netdev: Free packets in netdev_send() for devices that don't support send.
authorBen Pfaff <blp@ovn.org>
Tue, 9 Feb 2016 06:42:50 +0000 (22:42 -0800)
committerBen Pfaff <blp@ovn.org>
Tue, 9 Feb 2016 06:42:59 +0000 (22:42 -0800)
commit7dbd520ed9c18824a665e24d0757155ee2ba9e60
treeb06e3493be36ee8fd6896b5bb39b6dbd56b31892
parenta7a5711094d30a263ddc223d5a8dde4313f62530
netdev: Free packets in netdev_send() for devices that don't support send.

This manifested as a memory leak in test 898 "ofproto-dpif - sFlow packet
sampling - tunnel set", which included an output to a tunnel vport that
doesn't have an implementation of netdev_send().

Reported-by: William Tu <u9012063@gmail.com>
Reported-at: http://openvswitch.org/pipermail/dev/2016-February/065873.html
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/netdev-provider.h
lib/netdev.c