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 8495045C16; Wed, 30 Oct 2024 16:44:41 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6FADA4028F; Wed, 30 Oct 2024 16:44:41 +0100 (CET) Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by mails.dpdk.org (Postfix) with ESMTP id 575B340281 for ; Wed, 30 Oct 2024 16:44:40 +0100 (CET) Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-20cf6eea3c0so168365ad.0 for ; Wed, 30 Oct 2024 08:44:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1730303079; x=1730907879; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=3JPt5SHXyk9iyyyVs+jhnsdZYO9MmykXz6/kOCelxYA=; b=XCw2qzgJyUWieLMjHaTNGjjFKIQdgb0OQhwul4nAgQbdiGh7WXD/+pcoc9dsUv/6LB DfevwlWyUHqpOMwJ62i019ie7BwEIzvGHmYYloptCPwrkonjMzPmh60Ba122xL4kzh9v 5c/ezxYYlDhJKvxur0x5NNgvqs9d80+XHjLpokZ4xUJSAW+0GKWPB3Cym7ckkwJRtYfQ fcdhNy6eHNFBANBaKrQN3f5BZSBZSwu8I0Hplp60hj1fm8zziPuu7mtvcqMpZIG8K7As FK7VB2PbryPPI/APpdKpYrIHFaK7m9hJXblEFgDaK0n9q58PA9W1Tda+b+bbOpfcwlcG czcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730303079; x=1730907879; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3JPt5SHXyk9iyyyVs+jhnsdZYO9MmykXz6/kOCelxYA=; b=A32UE/E/M1p1ayAvMgTJ9Zz3TLrhX61cy2kzqzTv5EyB4yjLLCpwXWT0mcBNUFiZzC 4/iWrMdeoXxT9PF756klGy3vOckyoueSwpwaRrnwWQrQvbsmrxlOGqnLCeAUYShKTZ92 +hq3lJv31pHRDHXlPeRZGyDZzCBzOZoHxrdzclAbtym5jagXxGFryj/V014ZB0Fj4cOH 0Fp9pQYD0go2rAMer2n5TMETmmQ2ATl8+Tqlv+puiy6qdpu1ZyuK6ezAoRphhevNG6AJ hjIjXQdQr4MbUkIyIrWZp/GcguQVzIE9NwZlw1nrar8Qd7tApA3RauAnDcqhSvzPDfGp 1+NQ== X-Gm-Message-State: AOJu0Yy2g/WIkkXbh9teeOzjtmTQMejBUjvsGQebvt2iW+2G0Z3+cKIi l7QNbLFeERbFYdvsVVxFmmFF2n27FkdmpU9VZD6akpO3uFQXhO1F94AW/sBbEH4= X-Google-Smtp-Source: AGHT+IFN1ObAeQQUt+JjEynikPaSDdmBe5fqVkTQyKz8efmFLRC/pZt9X0VgH+jZ7LXz6VaPeN8SAg== X-Received: by 2002:a17:90a:d56:b0:2d6:1981:bbf7 with SMTP id 98e67ed59e1d1-2e8f11bad0emr17380002a91.32.1730303079418; Wed, 30 Oct 2024 08:44:39 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e92fa1cb52sm1879697a91.9.2024.10.30.08.44.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Oct 2024 08:44:39 -0700 (PDT) Date: Wed, 30 Oct 2024 08:44:37 -0700 From: Stephen Hemminger To: Vipin Varghese Cc: , , , , , , , , , , , , Subject: Re: [RFC v3 1/3] eal/lcore: add topology based functions Message-ID: <20241030084437.24fe8265@hermes.local> In-Reply-To: <20241030054133.520-2-vipin.varghese@amd.com> References: <20241030054133.520-1-vipin.varghese@amd.com> <20241030054133.520-2-vipin.varghese@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Wed, 30 Oct 2024 11:11:31 +0530 Vipin Varghese wrote: > + if (topo_cnfg.io) { > + free(topo_cnfg.io); > + topo_cnfg.io = NULL; > + } No need to check for NULL before calling free.