Re: [dpdk-dev] [PATCH v4] net/i40e: add null point check and fix mem leak

2018-01-26 Thread Zhang, Helin
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Xing, Beilei > Sent: Friday, January 26, 2018 12:58 PM > To: Yong Wang > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v4] net/i40e: add null point check and fix mem > leak > &

Re: [dpdk-dev] [PATCH v4] net/i40e: add null point check and fix mem leak

2018-01-25 Thread Xing, Beilei
> -Original Message- > From: Yong Wang [mailto:wang.yon...@zte.com.cn] > Sent: Thursday, January 25, 2018 5:01 PM > To: Xing, Beilei > Cc: dev@dpdk.org; Yong Wang > Subject: [PATCH v4] net/i40e: add null point check and fix mem leak > > There are several func calls to rte_zmalloc() which

[dpdk-dev] [PATCH v4] net/i40e: add null point check and fix mem leak

2018-01-25 Thread Yong Wang
There are several func calls to rte_zmalloc() which don't do null point check on the return value. And before return, the memory is not freed. Fix it by adding null point check and rte_free(). Fixes: 078259773da9 ("net/i40e: store ethertype filter") Fixes: 425c3325f0b0 ("net/i40e: store tunnel fil