[dpdk-dev] [PATCH] bus/fslmc: fix for resource leak coverity issue

David Marchand david.marchand at redhat.com
Thu Oct 31 17:18:24 CET 2019


On Tue, Sep 10, 2019 at 9:33 AM Agalya Babu RadhaKrishnan
<agalyax.babu.radhakrishnan at intel.com> wrote:
>
> From: Agalya Babu RadhaKrishnan <agalyax.babu.radhakrishnan at intel.com>
>
> 1 issue caught by 344967
> Leaked_storage: Variable sep going out of scope leaks the
> storage it points to.
>
> When 'sep' is not null and sep_exist is 0, 'sep' is freed
> before going out of scope of the function irrespective of
> 'addr' exists or not.
>
> Coverity Issue: 344967

s/Issue/issue/ according to the contributing guide.

> Fixes: e67a61614d0b ("bus/fslmc: support device iteration")
> Cc: stable at dpdk.org
>
> Signed-off-by: Agalya Babu RadhaKrishnan <agalyax.babu.radhakrishnan at intel.com>

Acked-by: Sachin Saxena <sachin.saxena at nxp.com>

Applied, thanks.


--
David Marchand



More information about the dev mailing list