On Thu, Sep 17, 2020 at 5:06 PM Ciara Power <ciara.po...@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: sta...@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 <gaurav1...@gmail.com> > Signed-off-by: Ciara Power <ciara.po...@intel.com> Acked-by: John McNamara <john.mcnam...@intel.com> Applied, thanks. -- David Marchand