af_packet: fix some leaks
authorOuyang Changchun <changchun.ouyang@intel.com>
Wed, 11 Mar 2015 01:34:01 +0000 (09:34 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 17 Mar 2015 21:58:21 +0000 (22:58 +0100)
commit527740ccfaecf86308f401f65b4476760d9b1e00
tree29ffdfb8d7e9c9970b2c47adda3a5cfbecc97b84
parent83246086ab6efc93ecdebeef1ec018970e2aa9fc
af_packet: fix some leaks

Fix possible memory leak issue: free kvlist before return;
Fix possible resource lost issue: close qssockfd before return;

Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com>
Acked-by: Michael Qiu <michael.qiu@intel.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: John W. Linville <linville@tuxdriver.com>
lib/librte_pmd_af_packet/rte_eth_af_packet.c