From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 51705A0C45; Wed, 20 Oct 2021 09:03:24 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B9E2D40150; Wed, 20 Oct 2021 09:03:23 +0200 (CEST) Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) by mails.dpdk.org (Postfix) with ESMTP id 067E540142 for ; Wed, 20 Oct 2021 09:03:22 +0200 (CEST) Received: by mail-wm1-f44.google.com with SMTP id g39so12502048wmp.3 for ; Wed, 20 Oct 2021 00:03:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=17WARtf6rkBdKkfhMnVC0PpmaCGFhzAKAJaSRX0IxN8=; b=J38cInGPaBA7vre2JtWeVkZPi0mMgRR7yfHJxVQLGWllOUOtpAT1+5AsnlSV78p5/r +ruoS/i36UcvTVTIGeLhhtEci9Zxwsd1+VoAGSkSGEje4aWcN9qJ5lEWjRrJ1ooh/1/C +vwDSVBmbMSUyezpu+P9CpDZ/T/K/VoG530S1xkOqQTS0kCEz0yE9/R4pZ1zsTx7nBVs cbE65O++WQX5aUzhc5JhrvxIw0vo+uhCyl5mp3JFP2q5jj6tbw5+ZF16Sr8/zzSkdOs9 Hw23LpXqtNw9ls/QMWIipSy0KYE8KYZT26SDESXr/fXNEy92Se5rUqOYr0ZtkfKBWgj+ XGOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=17WARtf6rkBdKkfhMnVC0PpmaCGFhzAKAJaSRX0IxN8=; b=q97Gtgpnn5+5/ET6oTVoad0M9GQF/bHq1jUt+8DA5QDhXnZKGL1VQj73XEEK5jdSAX cRA6xA0OhX6+MNTkzsorN3z9oVo2ALkKRhdOHRKB3Vgv9Q1d9Iv+FiBHsykj5AcqxDHs 2K6n0bfbO6F7VuWKnAcNTp2JoSQFXNhYO7N9hVhc10+axhCwo+6jO0XdqlPMV5rRMHcF vHGUtY5DudwYqzU/6SaVMOhPBvMfpBScTMYbI4vgkI3TKIhsxTHLydqFgUsnieYflofq iMscKYYdmDr5T/HK1YuBYgT7V2u5t7U8o4dwZxI/iY7a6K26PpMob8/2Tj+6PEKGhbhZ dCIw== X-Gm-Message-State: AOAM532rcJdLlHQ6Mh82TqdC9lgfC2qnU8KuKBQNQwmtdOIfNJm9oPEZ 7XvUtaqAVvvg7vq+bXB8G8JmRg== X-Google-Smtp-Source: ABdhPJzkjwJgG/RLRggqhTwfIX2WqfAtvRrMbP5P8An6rYEIIMQI9agVjdrEurKOvcS7e7lE6PFzow== X-Received: by 2002:a1c:4487:: with SMTP id r129mr11374680wma.127.1634713402755; Wed, 20 Oct 2021 00:03:22 -0700 (PDT) Received: from 6wind.com ([2a01:e0a:5ac:6460:c065:401d:87eb:9b25]) by smtp.gmail.com with ESMTPSA id g8sm1158352wrx.26.2021.10.20.00.03.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Oct 2021 00:03:22 -0700 (PDT) Date: Wed, 20 Oct 2021 09:03:21 +0200 From: Olivier Matz To: Dmitry Kozlyuk Cc: zhihongx.peng@intel.com, dev@dpdk.org Message-ID: References: <20211013015223.1155876-2-zhihongx.peng@intel.com> <20211018135850.1348365-1-zhihongx.peng@intel.com> <20211018172935.43cc2aaa@sovereign> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211018172935.43cc2aaa@sovereign> Subject: Re: [dpdk-dev] [PATCH v5] lib/cmdline: release cl when cmdline exit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Mon, Oct 18, 2021 at 05:29:35PM +0300, Dmitry Kozlyuk wrote: > 2021-10-18 21:58 (UTC+0800), zhihongx.peng@intel.com: > > From: Zhihong Peng > > > > Malloc cl in the cmdline_stdin_new function, so release in the > > cmdline_stdin_exit function is logical, so that cl will not be > > released alone. > > > > Fixes: af75078fece3 ("first public release") > > Cc: intel.com > > > > Signed-off-by: Zhihong Peng > > Reviewed-by: Dmitry Kozlyuk Acked-by: Olivier Matz