[dpdk-dev] [PATCH v5] 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 v5: - Initialize qsockfd with -1; Change in v4: - Check sockfd in internals->rx_queue against 0. Change in v3: - Also cl

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

2015-03-09 Thread John W. Linville
On Mon, Mar 09, 2015 at 04:58:11PM +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 v5: > - Initialize qsockfd with -1; > > Change