From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] lpm: fix freeing memory Date: Sun, 06 Nov 2016 23:46:38 +0100 Message-ID: <2303625.GdoPMvMkiz@xps13> References: <1478168159-57529-1-git-send-email-wei.dai@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: dev@dpdk.org To: Wei Dai , mb@smartsharesystems.com Return-path: Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by dpdk.org (Postfix) with ESMTP id 88CC9DE0 for ; Sun, 6 Nov 2016 23:46:40 +0100 (CET) Received: by mail-wm0-f53.google.com with SMTP id t79so145756613wmt.0 for ; Sun, 06 Nov 2016 14:46:40 -0800 (PST) In-Reply-To: <1478168159-57529-1-git-send-email-wei.dai@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-11-03 18:15, Wei Dai: > The memory pointed by lpm->rules_tbl should also be freed > when memory malloc for tbl8 fails in rte_lpm_create_v1604( ). > And the memory pointed by lpm->tbl8 should also be freed > when the lpm object is freed in rte_lpm_free_v1604( ). >=20 > Fixes: f1f7261838b3 ("lpm: add a new config structure for IPv4") >=20 > Signed-off-by: Morten Br=F8rup > Signed-off-by: Wei Dai Applied, thanks