Re: [dpdk-dev] [PATCH] cfgfile: fix resource leak

2017-11-06 Thread Thomas Monjalon
27/10/2017 17:08, Jastrzebski, MichalX K: > > > > Unsuccesfull memory allocation for elements inside cfgfile > > structure could result in resource leak. > > Fixed by pointer verification after each malloc, > > if malloc fail - error branch is proceeded with freeing memory. > > > > Coverity issue

Re: [dpdk-dev] [PATCH] cfgfile: fix resource leak

2017-10-27 Thread Jastrzebski, MichalX K
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Jacek Piasecki > Sent: Thursday, October 26, 2017 8:21 AM > To: Dumitrescu, Cristian > Cc: dev@dpdk.org; Piasecki, JacekX ; > sta...@dpdk.org > Subject: [dpdk-dev] [PATCH] cfgfi

[dpdk-dev] [PATCH] cfgfile: fix resource leak

2017-10-25 Thread Jacek Piasecki
Unsuccesfull memory allocation for elements inside cfgfile structure could result in resource leak. Fixed by pointer verification after each malloc, if malloc fail - error branch is proceeded with freeing memory. Coverity issue: 195032 Fixes: d4cb8197589d ("cfgfile: support runtime modification")