pcap: fix memory leak of kvargs
authorTetsuya Mukawa <mukawa@igel.co.jp>
Tue, 17 Mar 2015 04:12:41 +0000 (13:12 +0900)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 17 Mar 2015 21:58:21 +0000 (22:58 +0100)
commit8eb680e452ceb42a9bfa994ea822e4b1cbefcc37
tree5f6bd0376525201f4904493bad4c8ae9fe77c4d8
parent527740ccfaecf86308f401f65b4476760d9b1e00
pcap: fix memory leak of kvargs

'struct rte_kvargs' is allocated in rte_kvargs_parse(), and should be
freed with rte_kvargs_free().

Reported-by: John Mcnamara <john.mcnamara@intel.com>
Signed-off-by: Tetsuya Mukawa <mukawa@igel.co.jp>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
lib/librte_pmd_pcap/rte_eth_pcap.c