[dpdk-dev] [PATCH v2] af_packet: Fix some klocwork errors

2015-02-28 Thread Ouyang, Changchun
> -Original Message- > From: Neil Horman [mailto:nhorman at tuxdriver.com] > Sent: Friday, February 27, 2015 10:05 PM > To: Ouyang, Changchun > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2] af_packet: Fix some klocwork errors > > On Fri, Feb 27,

[dpdk-dev] [PATCH v2] af_packet: Fix some klocwork errors

2015-02-27 Thread Neil Horman
On Fri, Feb 27, 2015 at 08:49:13AM +0800, Ouyang Changchun wrote: > Fix possible memory leak issue: free kvlist before return; > Fix possible resource lost issue: close qssockfd before return; > > Signed-off-by: Changchun Ouyang > --- > change in v2: > - Make the error exit point a common path.

[dpdk-dev] [PATCH v2] af_packet: Fix some klocwork errors

2015-02-27 Thread Ouyang Changchun
Fix possible memory leak issue: free kvlist before return; Fix possible resource lost issue: close qssockfd before return; Signed-off-by: Changchun Ouyang --- change in v2: - Make the error exit point a common path. lib/librte_pmd_af_packet/rte_eth_af_packet.c | 11 +-- 1 file changed