From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0044.outbound.protection.outlook.com [104.47.32.44]) by dpdk.org (Postfix) with ESMTP id 07D872FDD for ; Tue, 4 Apr 2017 07:57:20 +0200 (CEST) Received: from BY2PR03CA073.namprd03.prod.outlook.com (10.141.249.46) by MWHPR03MB3119.namprd03.prod.outlook.com (10.174.174.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10; Tue, 4 Apr 2017 05:57:19 +0000 Received: from BN1AFFO11FD037.protection.gbl (2a01:111:f400:7c10::120) by BY2PR03CA073.outlook.office365.com (2a01:111:e400:2c5d::46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10 via Frontend Transport; Tue, 4 Apr 2017 05:57:19 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; caviumnetworks.com; dkim=none (message not signed) header.d=none; caviumnetworks.com; 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 BN1AFFO11FD037.mail.protection.outlook.com (10.58.52.241) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1005.5 via Frontend Transport; Tue, 4 Apr 2017 05:57:18 +0000 Received: from bf-netperf1.idc ([10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v345vF0p016799; Mon, 3 Apr 2017 22:57:16 -0700 From: Hemant Agrawal To: CC: , , Date: Tue, 4 Apr 2017 11:27:08 +0530 Message-ID: <1491285429-1114-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1491210002-9519-1-git-send-email-hemant.agrawal@nxp.com> References: <1491210002-9519-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131357590383876193; (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)(39860400002)(39380400002)(39850400002)(39410400002)(39400400002)(39450400003)(39840400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(81166006)(8936002)(50226002)(53936002)(5003940100001)(8676002)(54906002)(104016004)(8656002)(77096006)(36756003)(86362001)(2950100002)(6666003)(6916009)(2906002)(38730400002)(4326008)(110136004)(5660300001)(85426001)(356003)(33646002)(47776003)(305945005)(105606002)(189998001)(50986999)(2351001)(76176999)(48376002)(50466002)(106466001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB3119; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD037; 1:NAUTNHEaMi81K/bQQd14EKhpxasbcq76VNXbVV27m0qbYYLTyxWgbFTRAjgre+Vu8mOWwx3Bzl/NCsZqEE4+WMK13q73CCrn4Gf5DhSRcEygpwXaACCpw5cv1jF/SF+rPFOjRW/hWrtPuvYPy5pievW9jTZgiShdFogs8pC4MGon12I9CNDR5kY26ypynoy6kzdXMosWF+TqoTm+Nb0+D5GcKv/PD1OX1nZDs1T0Nuzg02dpBWQHAtlYMVo87z6yXRbuJ2OOcmyhDu/N9pt941SvYq15wCJtIZF0jPzgwOMxvS/EsQ5hZsfHWUkScX51IDGcqxOL1LjVU+h9I7q584v09xor30H033pzL2VbzNdR5SEHGafUmKz3XQd1XGhjbrZW/Xifsrdg0BDJe4Za4k5PGi3CZMxRvnmb+aLa/hhBYpzkdTCjsS4zlwuoYZqdnsEU9Ao7870mu3MviKaEyU4pi77dx06lVkW4lWrfN/yo2tRL13UmZtsO7yq06KWxPwutDy/wxqO8Ht5DfCXsyW7QlVVUvoe4kXQ/kvZcMmXCO5mkZUXoR/1qq39/J1MVI8N5vSRI3G3fPCozEQaelXhDW8rM4zOQnnMVL9DW8roqUFF4qrIH1Vg1d/0RdeUkqDkh3AiX13FXSFBoUg2RzA== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: bca6930c-03d4-4b30-7700-08d47b1f73d6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:MWHPR03MB3119; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB3119; 3:9hnj4XH2GrtZCjwUzmxdaXO/OM2k3h4vkoNX/Wk13u/ozlpSpXTDuBz52U81Y+qDu5f/pDUwioTeVsUJI7Kz8d7pqeDsjn+ZIU4qF2B8f9W6Kkw0IJ7E8GSw3WxKgxoh570wJz4xFknOSihFtec3n89Qm0bxucyjKaHbCkPxs252S/ekX+j+3dY7Z+Q6QFnzzkyDrpoyaGKomOmnWV2lQi9oDtRGKu9WDxKxPWZE//v7Px9nHApgAuPoNFLLi7lLDnmnE3x4LeA7OyfnjYEjzCe+pAiDfRHVzHTEPjlYB4rYQuv1A8lZmTgVy1dZ5F3nTcr4J01f0opllZvFozh54heoCc7rtk2LCT7SOiCpusin3gL6GvUKlcbGx4daG/gc7lw8wx7ce3xYergQLrH3X/wze3n9fZ1yP9qGPKRZFuen0D/q+oZyQhkliE+r4ebY; 25:H9LHs4Y6AhqJtg2J1zY/2gkv3z6f4LxHsTZj2NyJwQWyEO/QxLxrqcVc8OMdl2Y1cMqccBqkJgZOf95YVzKORV/+pu0Kj4ITGLC9wj4LnqQql6dB6LVkmunm4w5OGZCgxWtvLtJ5b2LOtZapNJPCjr4IyxlOixEJoaBEyhPO1BO8h9QvZOl//Khpqa8wpSBvGRBCrb8j4tZKt8Q5CpA4wQZ+xzjRtPaGq8YpGzm0A2X4RLjZe8Qem/dGvX4G7Rv6qaiOpbXaWUChCUNk/3NYWhNE8gtGJHMz7VtlThu23kednpJyl4E596b1jjiOYFNnKf1vy904E7tIQvb2yN456Lw2HtaWVO3taMT7c3NZhaidAJ0mBI8j614G0eMbdsXQVg0v0TUfNt5y2keCBubj0LwBJy60/++nZ0dkjpLDd8NXCprYlCgq/zRzz4FufZOEBfaZ6A6zCMBYhG7fOIMKtw== X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB3119; 31:MbTtYfO4FMquwVDL/57Dp4DV3SXo0sXbX3HOx8hgs65iA/ZU7JvAvBmz2zD19NyaiZpPUfwwGOSGtTWPOe5uAGYqv6Yg0ZPW+PWjn2vD+F/TGF9QzELO4zq/2cnqnN63oJ56Ym9Xx9uUkTyI4F2uve8/eZJcSisRLRslSoQlRCXn3xr3ZbiIGLYDuqulnSDa0fvmCtKK5YWzsIl6/KmKL87WKbpjEmByqnY+uJjIYdragPMC1aFi1y2Sy4plwVUTycdtBEpZMKapWI0GyqCsoSfg0QJplc1VLO2O8JXzTvw= 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)(8121501046)(13015025)(13017025)(5005006)(13024025)(13018025)(13023025)(10201501046)(3002001)(93006095)(93001095)(6055026)(6096035)(20161123561025)(20161123556025)(20161123563025)(201703131430075)(201703131433075)(201703131448075)(201703161259075)(20161123565025); SRVR:MWHPR03MB3119; BCL:0; PCL:0; RULEID:(400006); SRVR:MWHPR03MB3119; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB3119; 4:tZuoCap+5wN+XfONGGvenVajiHUivNRlo04lQThYKRYIWgNndjQLOTDSsKt9+ENSvif7L0qFkm/TMX4xDmprjBm8sZEx/8028CuCKuT8/Q2axuX0DO6g9Km5EXPi3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xQOVYY?= =?us-ascii?Q?AOyKeyxCyKp0e5Uo/rXEXeLhmNKq0ofW/KXTDK3hwgMLflV5vBocXlsS5+8Y?= =?us-ascii?Q?YZXT9Jd2DOil2qeX15zVQ87qCx7fgn1dOml1CIsXvufES2M3exCSuhTDzLwV?= =?us-ascii?Q?V03gAyYX4AfoBuweoaZ6NKPR8oHHgdMF1Q3?= X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB3119; 6:CYMVQsdCV1+TDCvW0eoF7onDhJ8qFKsCvQcVe2McqA4w88slXQneITapHagslCBD7RpBOrqcQ0e+8sf5Cis0dLh54cx2YbR0HIvIVVt0lZqZK48eYgeiU/8jMN6sgGIsy1w8w/ZcuWmnk7TYT748wBPierTDmQOQNv5sVXnbn+jENaobzZJ1Nb8juRTLWZtSMWhWtFXtvYVTUexHkZw0ae4iN7x7oski4fgRbtg5QsLV8RivBLKttivATU6H3rI2qIMpnb5YAwkBNzOR1xWNY9Gqz+/hhCKWn+kQTyQ1zYLcsesioLm8RpJhY8o2++aqIFGKAryhel+t2Bd5Y3CFzPrxdw67QmqjqntawaTChOBzW+mLqpLJLrb1IIUTi+jywcrWSZ7x6x1rVsRvpXymOA==; 5:kTD1+C/XWfZlIQNtXFzM/1NOUjrS2x+F80CbkhCS2WIF5ihkuO8tSkqfXNl9Q3/xdxr3cVCVXe/LP2C699uDQM/wCto3+uvvzzaJiHVj8/bg8KhGiR/F5lyFSFoZZ7VzMqXISd1gbaeHBs3kvGRpLyuTjlkjgXi2UcGfYGY+M+EirgeucaopA+lJ3V3zQsih; 24:Xi67Z4vswsD/AqznFAeBWmMorZwZ2rw7AcQ/JrCUvV7AYFktjP8gafsHgrakumD5d+AO4dlHK2FsY1aB+57m9nR2BCBTPiUJt8zzhRYlr5M= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB3119; 7:B5FvSZAZaXi26+jEV/lPwbqSdbRJqIbOkhxiqmSdMw21yCYLFW9HvlsfSPmvDl2UpuIeVwHvvMnFE5XuTeGOGsVi5/LImbKBafFrYoZ1Ur9ulOXmUTyltKPF3dJEWvrTu67jJauRRiIWUfk1O3mq0SQN6fM2inUyECjWjLojrxNJECMo5bUnPN0Np9YJYbQWqyirDeW01txzSF91lCLhZ3jdYsAKhRefg/vkh21ylfuRsPGno8z5hqWt1n7H7KcIBFhESUtUkhFsKV94/AU9AEn5rDlaLbwns7xDO5FwhklIGgj/zBuEn2fJPscoLWFywV1qIpmrUa8AzayATHHDcw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Apr 2017 05:57:18.2004 (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: MWHPR03MB3119 Subject: [dpdk-dev] [PATCH v3 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: Tue, 04 Apr 2017 05:57:21 -0000 From: Shreyansh Jain mempool autotest was not freeing the mempools. Fixes: 8ef772ae ("app/test: rework mempool tes") Cc: stable@dpdk.org Signed-off-by: Shreyansh Jain --- 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 @@ static int test_mempool_single_consumer(void) 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 @@ static int test_mempool_single_consumer(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); -- 1.9.1