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

2015-03-09 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 v4: - Check sockfd in internals->rx_queue against 0. Change in v3: - Also close sockets for all queues. Change in v2: -

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

2015-03-09 Thread Ouyang, Changchun
Hi Michael, > -Original Message- > From: Qiu, Michael > Sent: Monday, March 9, 2015 2:39 PM > To: Ouyang, Changchun; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v4] af_packet: Fix some klocwork errors > > On 3/9/2015 11:49 AM, Ouyang Changchun wrote: > &g

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

2015-03-09 Thread Qiu, Michael
On 3/9/2015 11:49 AM, 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 v4: > - Check sockfd in internals->rx_queue against 0. > > Change in