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

2015-03-12 Thread John W. Linville
On Thu, Mar 12, 2015 at 09:38:46AM -0400, Neil Horman wrote: > On Thu, Mar 12, 2015 at 10:43:24AM +, Qiu, Michael wrote: > > On 3/11/2015 9:34 AM, Ouyang Changchun wrote: > > > Fix possible memory leak issue: free kvlist before return; > > > Fix possible resource lost issue: close qssockfd

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

2015-03-12 Thread Qiu, Michael
On 3/11/2015 9:34 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 v7: > - Remove unnecessary '!= NULL' check before freeing it; > >

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

2015-03-12 Thread Neil Horman
On Thu, Mar 12, 2015 at 10:43:24AM +, Qiu, Michael wrote: > On 3/11/2015 9:34 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 > > --- > >

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

2015-03-11 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 v7: - Remove unnecessary '!= NULL' check before freeing it; Change in v6: - Refine exit point; Change in v5: -