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 5F90DA034C; Thu, 18 Aug 2022 13:37:57 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 09CD240694; Thu, 18 Aug 2022 13:37:57 +0200 (CEST) Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by mails.dpdk.org (Postfix) with ESMTP id E9D3440156 for ; Thu, 18 Aug 2022 13:37:55 +0200 (CEST) Received: by mail-wr1-f43.google.com with SMTP id n4so1396703wrp.10 for ; Thu, 18 Aug 2022 04:37:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emumba-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=evLb+7oy4n0bNVA5eNM/wbcQeyVAc50WCCjguAAHgLQ=; b=BRencOZG5bJIaTr3hQ1cm1sAW7Kv0SgHkPsG+zRZQ+alxtgoE9EjI38SEYJbrTIBTG DrwEtYV1E1QuOKSFFbuzAEcAUzzaFZXcRlaz4gm1GZcoE/8LR0+hnTUAeqRRlcLtHCol QHSIdpfohXf5irGcZyUksb4+zdWxZIwRonwKpuaWD8CUJkF8oM6Jj83IM/iZsu5UVTZP qrytyQesj7ur6JRX1rS8q+u+7UWLbLSOherpGhPbQpw2flNSEFI/DfoU8L5ooz2DuefB /mmH+d4J8cPsewOsOryfsT0r/9BSKeCo+447Rd/G93CBF6xyDdW9ofIE1XNbPXGtOet7 Re4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=evLb+7oy4n0bNVA5eNM/wbcQeyVAc50WCCjguAAHgLQ=; b=ePY4/T7YsIa8kY8vWk3YvVm3lhs/gSy2cC69LZ/N8CfAKiEI4NqSxR57Bbzk+nXYvQ dH8rxin8FRVyXpChSVU2we+WqkiBRN0KdLgAfERwRsvJ2TpdKixyld/jRYAu4OrpwZCN fOiIqXru9y5Tq+X2W0E+Ts99L+sVaVfqM1aXzQUpCrtmxZcAp7ljkU1PCtr8KS4CjdYY 3giQXYAIUsyW8e+5a7j6fBN78PiGdnyVwubQdsAer2aK9oo85UtKzRi3ZI3BG+XoS7Ge WPzXPxJ2gn+uwdS7oIzSKPiWbQYn0WxzEH1ob8dUELd8EWbvgqEWKuv1ukfFtwvot5Oj 6PPg== X-Gm-Message-State: ACgBeo2Zg0D9fvUdP4p/bI/rrelIzBYFqxjioX0TmY0N5NQLNKZWmmnG BXcdPk41Rk5MR//N51cSGzKxPHPUZ2M3 X-Google-Smtp-Source: AA6agR6yL3C8f6JWyMULpnZu4VwnWBKKxi1TI0IMo5xpnoxxf8H6NYHH1N5/PNQ1x6EihM30bHR2Rg== X-Received: by 2002:a5d:4a01:0:b0:21d:8ce1:8b6d with SMTP id m1-20020a5d4a01000000b0021d8ce18b6dmr1393197wrq.718.1660822675554; Thu, 18 Aug 2022 04:37:55 -0700 (PDT) Received: from localhost.localdomain ([182.191.21.234]) by smtp.gmail.com with ESMTPSA id d24-20020adfa358000000b0021ea1bcc300sm1294453wrb.56.2022.08.18.04.37.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Aug 2022 04:37:55 -0700 (PDT) From: Fidaullah Noonari To: maryam.tahhan@intel.com Cc: dev@dpdk.org, Fidaullah Noonari Subject: [PATCH] app/proc-info: add rte_eal_cleanup() to avoid memory leak Date: Thu, 18 Aug 2022 16:37:42 +0500 Message-Id: <20220818113742.138791-1-fidaullah.noonari@emumba.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 when app is launched with -m proc-info exit without rte_eal_cleanup() causing memory leakage. This commit resolves the memory leakage issue and closes app properly. Bugzilla id: 898 Signed-off-by: Fidaullah Noonari --- app/proc-info/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/proc-info/main.c b/app/proc-info/main.c index 1bfba5f60d..44a946045e 100644 --- a/app/proc-info/main.c +++ b/app/proc-info/main.c @@ -1523,6 +1523,9 @@ main(int argc, char **argv) if (mem_info) { meminfo_display(); + ret = rte_eal_cleanup(); + if (ret != 0) + printf("Error from rte_eal_cleanup(), %d\n", ret); return 0; } -- 2.25.1