From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0056.outbound.protection.outlook.com [104.47.33.56]) by dpdk.org (Postfix) with ESMTP id F320C2A6C; Wed, 5 Apr 2017 11:29:29 +0200 (CEST) Received: from DM5PR03CA0014.namprd03.prod.outlook.com (10.175.104.24) by BL2PR03MB276.namprd03.prod.outlook.com (10.255.231.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10; Wed, 5 Apr 2017 09:29:28 +0000 Received: from BL2FFO11FD013.protection.gbl (2a01:111:f400:7c09::174) by DM5PR03CA0014.outlook.office365.com (2603:10b6:3:118::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17 via Frontend Transport; Wed, 5 Apr 2017 09:29:27 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD013.mail.protection.outlook.com (10.173.160.221) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1005.5 via Frontend Transport; Wed, 5 Apr 2017 09:29:27 +0000 Received: from Tophie.ap.freescale.net ([10.232.14.39]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v359TN1J028918; Wed, 5 Apr 2017 02:29:24 -0700 From: Shreyansh Jain To: CC: , , , Shreyansh Jain , Date: Wed, 5 Apr 2017 15:05:33 +0530 Message-ID: <1491384934-5379-1-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1491285429-1114-1-git-send-email-hemant.agrawal@nxp.com> References: <1491285429-1114-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131358581674646780; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39450400003)(39840400002)(39860400002)(39410400002)(39850400002)(39400400002)(39380400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(9170700003)(189998001)(77096006)(48376002)(50466002)(47776003)(8656002)(33646002)(4326008)(50986999)(86362001)(5660300001)(76176999)(356003)(305945005)(38730400002)(110136004)(104016004)(53936002)(50226002)(5003940100001)(105606002)(6666003)(54906002)(2950100002)(6916009)(8936002)(36756003)(85426001)(106466001)(2351001)(81166006)(8676002)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR03MB276; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD013; 1:OOR4smQQntIyIjPPTc6xovwtqpmMLkVvK4iWc7ERz+utK/phN/EI0YCqXbEJ4MzRiqMrnLqCDuxrIZ2/s5o0z14lFdjni99RqtSrzxDbxvfMt2KSeyHM0t+V7TrDqRQj3yjpd0BevaswqK2ytBfvIjVZVGO7NHVLGtGvZA+xAll9fUvHwIqPkeNelYkFU+GG7v8k3v+XDX/LhOPn+91rEEohQqoqKWoaiA5gEW0vBm2ByU+PAqR2hQ78ya/BSTUS5RCrWpTsy29t8hLGqjJL1s1AY+KN9ZLYep3LgE1KA4WovAFHG0REygzTKKj7xl8TB6kIUzLb/23ICrVZ+RM21Q0UEk3m4I6xv9eotcxiDs5PUfH0xm8DazKzt8bbqKuRlMQjayHUmlE53B2xTRh2qRVCWXIKhr3vRtFssqijw9kLIhdZ0gxEoI/NM3yxMv+PbuhseD71i5/pj5hqLAxHYILgeT+oBb1URu+GyzyroLlmQPq7lunTrAzmKIuPzVP9k3gPPdErjOrKCYEtJcTakOvcaUoB0TjGurxMIpE+f+YO8L9UFaXFO6jGEhXb/vjYEGxM4xAie7Yo9ZvAfN9adm+lhgw6eWFfXAhhmqyCV2UdcoxtWm5IyvecKa5wsSWiFQ+SWkvYXK1TADgvSE6Qag== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 92f08ede-4b3b-4182-9cfc-08d47c064161 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:BL2PR03MB276; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB276; 3:N9dJIcoTnyv+UoHO2rMsSF9ui70AL6xWXXtFxGWuudoGL6F195AhOt/j2Izb51YmbNNhmMK+MmhKovhz4uW5iKdwh5+cpPZH1DhISxcHogzhM/ye7S04LAhRnagtennQxOMaWPVPIRrdWbA2Kg6F8T2VHKpbvDvbj20rXrDM8jZHvNjtk6+dMANcVqG0sVPqmFV5y290h5xcLksfVIb7oxxz6z6spzoLUgA6zUbxSyJ7o/uvuQaI1IQ+IscEM02rKno6ML8tmOfLMC5fxZbiXDYcexKOmcU02sQM+VdQOmZ1u3IC3/DjbEpkfoyRUseK9cfXIBHgh/Z2sPR56Of7VeRh18quvethbQl2fWumgg7+k8aaYFXL3sVF7FDwEH5mf+TregizKT9DOQeoSZaY5upZiK0xNAwaU1ukPi7fbzfyBkgyvmrWz4bxMcwPt4KG; 25:WLUB26VvOwnSzkaTkgjTLGQPGDIFg85a6Yd4jplw9/19JMYzcjMy2tpXh1SnSQkHz2Gh9nDqjK/Hv0uBCwcTe4iMnzUP+rDk0yEs0mj7fVuN7T66M/3bk7fCTJODx2vqho2uFeHxXmFzAgsVXEj177gN6qpUZm0fXB+7VxpT7C12KCFVBkBdGy1/5bgQszwV5FxRGa8Kg+nF2coi3jkwf8hN3E/jHYnTcp952DghSBdX5mPmKSEUeyBhTMw2zVi3zVMm9A1WphftK3lMerXjPJ9feVBfrwTv1etFOBvl1F4uh1VnJ9AaQloG9+OtfxKG8aREv1bCuDzt6dP76JzXkG236jZPJPSZYpVLtoM+3qruoZulR2v/S1GqfNMEXgWOMUT/04/g3LlTWFUjvK7YTzTYP7sqx4epNBPGBxrUiEZCvEiTP0Yz+qaK3/l5QSPrEttC8xIFZ3LQDboBFNjeZw== X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB276; 31:0q5dNMofsMKJJyVXcgbjxj6w3fTa6rhonmWcbCN0ohBJn6OTSk7oJBHwtunQZA7tB1FFP5OV6fOwExZSVu0fVUqW521EPzUViLrCrNaMrkfA8gWvJknJOsBdAyhDPj1P3Hk3EUcjgYwZDuwUmxoCp3UTmfWdA/bYajTCvHn6oWfwGPAxII9YCHQvcaO/eulGwWyhJNz8H3MOp6ej2K5wEvSFk0aHUI+NnIAvLQ/h+6UZYRggbL3AWuaez6xxXWSwv8ZLDpY0+Q9lSWQ+0Fk6VQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(601004)(2401047)(13024025)(13023025)(13018025)(8121501046)(5005006)(13015025)(13017025)(3002001)(93006095)(93001095)(10201501046)(6055026)(6096035)(20161123561025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259075)(20161123565025)(20161123556025)(20161123563025); SRVR:BL2PR03MB276; BCL:0; PCL:0; RULEID:(400006); SRVR:BL2PR03MB276; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB276; 4:oSqQnm1uLeFkhCQZTQnP8xHp734+8vKmmbpJNU24mSec/5oBTL6blbI9cGRlkR1MiVCw/Zbk+0Cd7W2F4TXnOGY8kbJCeOBfZOT8Dw1xwWiv+GIhHWj/2NPJR5X4Cb9pMYEHsHubkYbCh7BDM8uS/FMiX+BQ3J8KMVofchUN6wNa6K/PWfSHwu/Lhk1qrr9HdPVZhHxftdTNXxzffoRj08fRTNcuK3MiPqbpbFF5QMcmwx1WOSyO/6gGNJNpup0xTHmhDef0THC80XV68lQog4SxC43GpBlgUmjU2lZJc2QNGCNWZcZEEdVzm4JQgQ1dEvQFUTNVRflazb52GRbjoOGw8khxwQlHQkIMsfmMqw0bIv31ZDsmCoHPzZsYPXuF174Q2hYPJvvb/IY1w60RTmAhojblHlX4fyaQzBNhbJ0kNOojNwEKjwawx8ACgPor1ALE2Sb39fsMEV94G1V+YzrYztbnDUaXcH3lyateK/ELuNIpMH9AHIcdcu8uT4NYedwDf2XR20TNqySJoK9oOQN+A9CUFRb34DNRZMUfxi2AVxHbACBYGj5VyEvNGLg1w7Z1N53/HEHCitpzMNyItS3rlStR9jGVQbbX1e/855YQCaqzvLiCkN2PNwXHp4gUYrBtPcrNTzOAnP8PWNsOOOgR0HqC4Z1omtv8w6pti2cyl0zDjSeqjUuGaCSh55TiB3ahaYrfFwbzIE866hCTax0xFaUm2DvsQ04bS3a/tqIz8lt8ROXNv6544NaF987rgL8sByMP0pzNeG0n2h/S70+/deoADySq0UupC4nNh3RbvBYu2T0ffX5fuoI82tjBXjXu5HiIXsKl3UMRAVpvueyDu7IJoRmEPWnXb3t5QCpqMpx5SzIvXsDNwslcT3lMxpyUahIP3rdfaRpJ+zYWVZeJ4jZNJr/o7yD8Skl7m24= X-Forefront-PRVS: 0268246AE7 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL2PR03MB276; 23:i1rR4jho+diKEHlPWrO6e1UMr57V67xxKvEX1dSTY/?= =?us-ascii?Q?lALWw43CYFpiKgojbfCprFMoPxvDjZemMO3GAXmVZxXl5AUjwmFeH5Os71FW?= =?us-ascii?Q?q9wpBtcImDZSlbKU7jBDr3P6H9qNKxpJEiiOosl1tHwwjC9hZj3tNO+pl+0H?= =?us-ascii?Q?Vvzo9EdR6j/6U0WikTDbS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=?us-ascii?Q?DFYYuuw3lGy1NLA8yQtO1EwXlgVExFauqe8ZJDkhdodctCJ/rMfMcenyORE8?= =?us-ascii?Q?ALq1v2k8pIpEsWyoo+x99X/9IvvR0J829lF6ZocgnmP9OQHNx6MsUPlBZH15?= =?us-ascii?Q?AuKmyEtRvWmDM2+rzNMonKmK/jYUNurGIC?= X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB276; 6:LnFrE3g+cFGz2HR2tBDTtl2DzbsLan8j1ZiGjXQVNwIe0B0W8Xea7b/0CbPO2yE5WjlIgz3imtFxHDurTj+qwDuPyzPHI7X88cwXr62V9yKNVJdoauRfG6LAVSsQN6dGftqYPAJlC6SLsxMAVbCNAR9a3oBGJghbH5eJRVTol9Z+AUOlU2AvL9hCdY5v/fD98Kq9zKQdEC5q08axfgUBOx6EQ2LD0jLi5ycrfZm/r72W4HmBpN5q2AsORL+Ga96/jDvKvZgKYAKe5iBzpknQz+D4I2K+vQ1mFjPux6WfgErsFTI38kNumhgZRmkMPQuJ2S7jF6mL+ZMKgK+peHQDU4Jxc+eYeQHOMVTGuVbBMvWXKWKy5jRTiT1VexqRxt7Lb895bxdpsiRtbN580mZ4jA==; 5:wRZN8GKV990/noavZU+Ij70zoxKXni1p1HYAm6KBX4vzzEM/dZLCMaAhaEVXoxVFHp/Wo51cXv1HeRYOLwfUMMTKXP00qaSbPwqsNqbx5Dhvt5r9gfO+4ON+auu4DITueWiwIMZymy8e1C6l0sGGzN78bMRXkH32lA4PYLhbccif4ffX3GJKaug408XYtBEY; 24:o4XtCNt7nJjZ7s5WopYuKo68q2f9P/w2WCR70OiT9GwToVfi9ZTBL31N8HLc9gdLtnLg8IWA7LGBHdsvVPO19ArPxQcgD36sdwMBzrEZXwM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB276; 7:KpR6wCX65VzST1KDlSpd0whfaM2lAWDPvmjG+I3DZfh1QvkNSpUN9rM+mTb4gtjx5eOyEIkzHau4w6jGYJXx6XX2C9haVHxuGDlv/VlRNEY45pgmREtF8Rdq2TqOktS6je1kvGMPCEfVP20dXqXzVWpk7wcf3O/TGg3jpORgpyhTT1dtOaAJau/ISXIqZ0c3iZEY74KrTk2/5ruy8s4HodzHRcBvcBIRvHKYFTnenq88kmz2Ovj/ABwEKt/gxPP08zpUlManFpatabtxkEV+kFqdrjZVos0Gp/FE6Z/ov5boNtyW3m7kchSfvrUpQ5DkUgO32GCbclGN0Km2GykmYQ== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Apr 2017 09:29:27.2930 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR03MB276 Subject: [dpdk-dev] [PATCH v4 1/2] test/test: free mempool on exit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2017 09:29:30 -0000 mempool autotest was not freeing the mempools. Fixes: 8ef772ae ("app/test: rework mempool tes") Cc: stable@dpdk.org Signed-off-by: Shreyansh Jain Reviewed-by: Santosh Shukla --- v4: rebased over 27c270bc v3: fix the incorrect split v2: separte the bug fix from change test/test/test_mempool.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test/test_mempool.c b/test/test/test_mempool.c index b9880b3..715b250 100644 --- a/test/test/test_mempool.c +++ b/test/test/test_mempool.c @@ -509,6 +509,7 @@ walk_cb(struct rte_mempool *mp, void *userdata __rte_unused) static int test_mempool(void) { + int ret = -1; struct rte_mempool *mp_cache = NULL; struct rte_mempool *mp_nocache = NULL; struct rte_mempool *mp_stack = NULL; @@ -607,13 +608,13 @@ test_mempool(void) rte_mempool_list_dump(stdout); - return 0; + ret = 0; err: rte_mempool_free(mp_nocache); rte_mempool_free(mp_cache); rte_mempool_free(mp_stack); - return -1; + return ret; } REGISTER_TEST_COMMAND(mempool_autotest, test_mempool); -- 2.7.4