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 2CA0AA0C43; Mon, 18 Oct 2021 16:29:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6F989410F2; Mon, 18 Oct 2021 16:29:39 +0200 (CEST) Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) by mails.dpdk.org (Postfix) with ESMTP id 1B59D40141 for ; Mon, 18 Oct 2021 16:29:37 +0200 (CEST) Received: by mail-lf1-f42.google.com with SMTP id z11so113865lfj.4 for ; Mon, 18 Oct 2021 07:29:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BYzsFd1q6VM+chdlDVWQr9pa0C4FZ6iMgRivzHnVUc0=; b=P3rLrDDlafJYDlxIAiddI/TIXxing5va70ihzuWYFUVFV6++Y9qrv2/LpKdEi6Mi8a ysNUXMajrsOLegNjC7V+JqEedk7PkY9/AihdqYf3Z84mlnzNZimwTBhKQbIEzJnE+LQY 6xkFR/mIeohV0b3+z/jlU3nDb5f6n8/QiIuNb4g8G7icutQqHNq0AFmTdYRNUrPgl9DU zIWerL4BZmH/1x9UxhPnPKgwb4vFiGRbVmw4luFdtagFNR6Icg3nVjKo8RUwatAFip+E mkVnmup9+uqb18ie/ewt+W4lMMa+8xnlSdWpyqCfkw9Hh8HVBYxyseqFY8kyrQztS9OG QADw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=BYzsFd1q6VM+chdlDVWQr9pa0C4FZ6iMgRivzHnVUc0=; b=IgEnbmZGoUhzeBuDStzbQ7vjuog6QOTyZ3UFLlxfxjnvLnz8Uu5vBKtTJLNrtIaded N02GxwBOIv694pF8t/8msYuaqfwki5n+zVlTukLWpQEevio3vCWIQEvS58vtcgjkBk4l lLdCsvJa7K7VZ2iFtMELqRnaM7NnJ2SiTRKNyHx/farqTq56lgVysB3In6nWt3wA71x+ OutRN1v3VXg/bGOYGJsgyrE6y0ikK9bSjJabRLUbhc960hIo+K6V1RcZVyWPAwdnJT0f lM+bwAY7wqfAElpRDM5V06Rq6t3LYqo1Gxa6Ghcr127JU2S5abdVywuMcy94STjlDSV2 Fe4w== X-Gm-Message-State: AOAM530zxaLtVUbhgTHj+yw5UIoFG2CBHs0O5muXI7xhYWXuV4s+a1j5 kEZ2TE5GbP94WWxjXdepJl4= X-Google-Smtp-Source: ABdhPJxSAYh83uW0I0lrH1g1vHEvOp3if6Js5nkhKR7wph4dI+pAw6n+GcAPA9rbbOFnPSGMC1Ha0Q== X-Received: by 2002:a05:6512:13a8:: with SMTP id p40mr111156lfa.300.1634567376657; Mon, 18 Oct 2021 07:29:36 -0700 (PDT) Received: from sovereign (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id y19sm1389596lfa.123.2021.10.18.07.29.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Oct 2021 07:29:36 -0700 (PDT) Date: Mon, 18 Oct 2021 17:29:35 +0300 From: Dmitry Kozlyuk To: zhihongx.peng@intel.com Cc: olivier.matz@6wind.com, dev@dpdk.org Message-ID: <20211018172935.43cc2aaa@sovereign> In-Reply-To: <20211018135850.1348365-1-zhihongx.peng@intel.com> References: <20211013015223.1155876-2-zhihongx.peng@intel.com> <20211018135850.1348365-1-zhihongx.peng@intel.com> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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" 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