DPDK patches and discussions
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Tianli Lai <laitianli@tom.com>
Cc: dev@dpdk.org
Subject: Re: [PATCH] app/pdump: free mempool at cleanup resources
Date: Thu, 24 Feb 2022 08:01:45 -0800	[thread overview]
Message-ID: <20220224080145.362f27ed@hermes.local> (raw)
In-Reply-To: <1645704898-52464-1-git-send-email-laitianli@tom.com>

On Thu, 24 Feb 2022 20:14:58 +0800
Tianli Lai <laitianli@tom.com> wrote:

> +		if (pt->mp) {
> +			rte_mempool_free(pt->mp);
> +			pt->mp = NULL;

Check for null is unnecessary here, rte_mempool_free(NULL) is nop.

  reply	other threads:[~2022-02-24 16:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-24 12:14 Tianli Lai
2022-02-24 16:01 ` Stephen Hemminger [this message]
2022-02-24 12:52 Tianli Lai
2022-02-25  1:00 Tianli Lai
2022-02-25  2:40 ` Stephen Hemminger
2022-03-07 23:21   ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220224080145.362f27ed@hermes.local \
    --to=stephen@networkplumber.org \
    --cc=dev@dpdk.org \
    --cc=laitianli@tom.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).