[dpdk-dev] [PATCH] metrics: fix resource leak on memory allocation fail
    David Marchand 
    david.marchand at redhat.com
       
    Tue Nov  3 22:36:26 CET 2020
    
    
  
On Thu, Sep 17, 2020 at 5:06 PM Ciara Power <ciara.power at intel.com> wrote:
>
> If an error occurred when allocating memory for metrics or names,
> the function returned without freeing allocated memory. This is now
> fixed to avoid the resource leak in the case that either metrics or
> names had been successfully allocated memory.
>
> Coverity issue: 362053
> Fixes: c5b7197f662e ("telemetry: move some functions to metrics library")
> Cc: stable at dpdk.org
>
Gaurav reported the same issue and proposed a patch, but I went with
yours as it describes the issue, is minimal and has the proper tags
for backport.
Reported-by: Gaurav Singh <gaurav1086 at gmail.com>
> Signed-off-by: Ciara Power <ciara.power at intel.com>
Acked-by: John McNamara <john.mcnamara at intel.com>
Applied, thanks.
-- 
David Marchand
    
    
More information about the dev
mailing list