examples/l3fwd-power: fix memory leak for non-IP packets
authorShaopeng He <shaopeng.he@intel.com>
Fri, 5 Feb 2016 04:57:50 +0000 (12:57 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 16 Mar 2016 17:51:43 +0000 (18:51 +0100)
commitbec2f7df9c4509e42c266b164af3ac5998447ffb
tree46c698bb7d50b54b22119fd8eec7e941226ed018
parent8bd8bae9c389c1664d095424f5ad1549614cd29c
examples/l3fwd-power: fix memory leak for non-IP packets

Previous l3fwd-power only processes IP and IPv6 packets, other
packets' mbufs are not freed, and this causes a memory leak.
This patch fixes this issue.

Fixes: 3c0184cc0c60 ("examples: replace some offload flags with packet type")

Signed-off-by: Shaopeng He <shaopeng.he@intel.com>
Acked-by: Jing Chen <jing.d.chen@intel.com>
Acked-by: Michael Qiu <michael.qiu@intel.com>
doc/guides/rel_notes/release_16_04.rst
examples/l3fwd-power/main.c