From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <linville@tuxdriver.com> Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id 6C2827DF0 for <dev@dpdk.org>; Fri, 19 Dec 2014 20:45:09 +0100 (CET) Received: from uucp by smtp.tuxdriver.com with local-rmail (Exim 4.63) (envelope-from <linville@tuxdriver.com>) id 1Y23U3-0002GU-CH; Fri, 19 Dec 2014 14:45:07 -0500 Received: from linville-x1.hq.tuxdriver.com (localhost.localdomain [127.0.0.1]) by linville-x1.hq.tuxdriver.com (8.14.8/8.14.6) with ESMTP id sBJJZeYu009614; Fri, 19 Dec 2014 14:35:40 -0500 Received: (from linville@localhost) by linville-x1.hq.tuxdriver.com (8.14.8/8.14.8/Submit) id sBJJZe7G009613; Fri, 19 Dec 2014 14:35:40 -0500 Date: Fri, 19 Dec 2014 14:35:40 -0500 From: "John W. Linville" <linville@tuxdriver.com> To: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com> Message-ID: <20141219193539.GA32707@tuxdriver.com> References: <1419001296-8300-1-git-send-email-danielx.t.mrzyglod@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1419001296-8300-1-git-send-email-danielx.t.mrzyglod@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] af_packet: fix possible memory leak X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK <dev.dpdk.org> List-Unsubscribe: <http://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <http://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> X-List-Received-Date: Fri, 19 Dec 2014 19:45:10 -0000 On Fri, Dec 19, 2014 at 04:01:36PM +0100, Daniel Mrzyglod wrote: > In rte_pmd_init_internals, we are mapping memory but not released > if error occure it could produce memoryleak. > Add unmmap function to release memory. > > Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com> > --- > lib/librte_pmd_af_packet/rte_eth_af_packet.c | 7 +++++++ > 1 file changed, 7 insertions(+) Acked-by: John W. Linville <linville@tuxdriver.com> -- John W. Linville Someday the world will need a hero, and you linville@tuxdriver.com might be all we have. Be ready.