From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id C5EADC57C for ; Fri, 19 Feb 2016 16:19:52 +0100 (CET) Received: by mail-wm0-f51.google.com with SMTP id g62so73194697wme.0 for ; Fri, 19 Feb 2016 07:19:52 -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:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=X2WgwNxQWvLgc0tfMW0+Rmr/wpRy2tbACPCmiFP8HKM=; b=gN8iQ6d3R3fe8CqrzT/tVYl9x2/cmKkKQkFmoFPrQdVMFvNR8wGLpig9Xd7W7MwfHl heo8ULdK5McOEYtoFVLhQ0OBgvQiTwWzrnY6XA6cq4aVt2hppBkJK1x1Zv/KyaepTaKJ C3SA035zNRnva0poC69A88Cwy3/xAz+Z1v0mDjPaAVmBk4wH1psO1QMUpcvAuaXesVog 5ox12oqGlrr1a3VFoD739vEVU8sTh/+AnP2nMe/yCcA3FT1yNAwtLCQ6uadJgCGCW5V5 Gjc7wMGibGijYZXW1mRDoYF2fYD3UmIhyPQybaVVeWrP/HFgkEBRYLMcKoVhAeJpsdfJ AvGg== 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:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=X2WgwNxQWvLgc0tfMW0+Rmr/wpRy2tbACPCmiFP8HKM=; b=cyMkQYPJO49ATwLtOIXKS1T1AJx0tjnFcYzf5lbs0GuQNrsQbGdVeKe1o5QjAUsU94 obECw6tOJ2rZUpu21ImtfhLAOwd3CosAiaciLc8qb8K9mdUX72s2YSOeiw2a0j2sMAZG rc7+VaFavIyzbcwrxo5xy3g9fGXWdkzZNeb44wjevfS8HQ1Ksj1rTsuqZ3CA8rwiXSd4 tgO1mQqJ7ITpkGto4SM+iBf0X1Bpw+zZ1xPr8nC70I9f/95z6ilGJVbWlGk6/TzxJPW1 /uiy91Bf9NhmIGA+gSL2I+rFODr8C4Wh033MwkeTGiPSOD4si2Z5Ucdw4rcCbSDbuisn EDrA== X-Gm-Message-State: AG10YORtsiHPN5mEVxqVe47Ie2jfRW8BygCTif+Hy+ngWpwdORxKim2bOw6kFmGCUEI0NJfi X-Received: by 10.28.12.80 with SMTP id 77mr9721241wmm.19.1455895192662; Fri, 19 Feb 2016 07:19:52 -0800 (PST) Received: from xps13.localnet (111.204.154.77.rev.sfr.net. [77.154.204.111]) by smtp.gmail.com with ESMTPSA id j18sm8149090wmd.2.2016.02.19.07.19.51 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 19 Feb 2016 07:19:51 -0800 (PST) From: Thomas Monjalon To: Olivier Matz Date: Fri, 19 Feb 2016 16:18:18 +0100 Message-ID: <1793478.sHoS7saUzB@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1455633610-5179-1-git-send-email-olivier.matz@6wind.com> References: <1455633610-5179-1-git-send-email-olivier.matz@6wind.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] mempool: fix leak when mempool creation fails 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: Fri, 19 Feb 2016 15:19:52 -0000 2016-02-16 15:40, Olivier Matz: > Since commits ff909fe21f and 4e32101f9b, it is now possible to free > memzones and rings. > > The rte_mempool_create() should be modified to take advantage of this > and not leak memory when an allocation fails. > > Signed-off-by: Olivier Matz Applied, thanks