From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=npRxoJavyQlzEAPKZfRKLMP7XBX7s10wytnLryisf5E=; b=sdrC9TA4tehP2DuObkHNZ2YEAXE5nqT99ZLGumggVgm9WARKHZ+obDXl9psB5t9OrC kI2eVQHvgkh5xB2nvhJq7/UbWogeXIo2rN52t84ZefUYsW4E4YZrcsqbCNhOW29T/0aJ 1qBNOH19TF9v1U9ylVRmsRxZIDrCyvUX29S108zhVt8+U4VlLiLscQe0VrcC8p8PuRES rGwDyVjj+2BvgTBwj+aRysEiTpIdTzbLpwy4MiYcrKIuhiGPUmOOWuIhP5JFQMg1ixKU R5c1QYl8v8/BMGIQ/wAldtcwgTX4pCIJ7XnNnCrmzf/pJdTVNSuAQkecJR5ut1hYgFIl uDgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=npRxoJavyQlzEAPKZfRKLMP7XBX7s10wytnLryisf5E=; b=BrEGqOqdYy02c1kCXN5vvlR3jJsjP1QDp+0tH8ZEiefKsx4+h7EMQebaO+GVr9fZXr jfUzcBamZ1eXtIb9AzoLmaGvur1ymyrE/W9nWXo6YaOM9539vy10BLiYzHQvNjrc5j3k gE7bPY1Ryez1XS+XuwUkTOpkDHynHjskFRBKVb04tiFDfpZzp4sA6S2+Y1tCPgWPoqXh ByEWSMUZ1M5qzVtSpaCe11cbo8prh/tDTipYQL9pXVBEgPqy5IR8ypuYtIoJPyRR9FGs 2/jL4v68hY/zeHQMpW/mYdRx5Mfnkvaq+uV2WOvntHVE+vXNxmrGZekUaiJ+F0gGzVyY 6SEQ== X-Gm-Message-State: ABUngvcARpBY+ESINOmyC3rvl3JFzSy95bEXIJ7m3GkEfwQAaIci/ijyUWbTfThWMIQBHbEN X-Received: by 10.28.150.20 with SMTP id y20mr6034792wmd.67.1478472400250; Sun, 06 Nov 2016 14:46:40 -0800 (PST) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id ia7sm27056043wjb.23.2016.11.06.14.46.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Nov 2016 14:46:39 -0800 (PST) From: Thomas Monjalon To: Wei Dai , mb@smartsharesystems.com Cc: dev@dpdk.org Date: Sun, 06 Nov 2016 23:46:38 +0100 Message-ID: <2303625.GdoPMvMkiz@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1478168159-57529-1-git-send-email-wei.dai@intel.com> References: <1478168159-57529-1-git-send-email-wei.dai@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Subject: Re: [dpdk-dev] [PATCH] lpm: fix freeing memory X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Nov 2016 22:46:40 -0000 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