From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 12EBCA04A3; Tue, 16 Jun 2020 13:47:20 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CE5901BF5D; Tue, 16 Jun 2020 13:47:18 +0200 (CEST) Received: from alln-iport-5.cisco.com (alln-iport-5.cisco.com [173.37.142.92]) by dpdk.org (Postfix) with ESMTP id 98B031BF5C for ; Tue, 16 Jun 2020 13:47:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=11714; q=dns/txt; s=iport; t=1592308037; x=1593517637; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=PjYAHi+qdnAagVIhPD+9aNbpPnO8PSv5StVzA7ApIxw=; b=QahPPd5ok5JaFY8uawMo7BOA9dFLgKfYbq8LO4YyEA3gNWJ3tJjzsR4X Gr+Mg0L/cbxe6Ozpw8tY9Y0MLj+kYKuqirNXH4s/+hRLDmkcA2L6q5Qz1 LJXonIepWeRZpYQ2QOeSztm7+d14tQleKQQYwlmGoMDjIn9G037xRrm4A 0=; IronPort-PHdr: =?us-ascii?q?9a23=3AJZ4XhxwuxBAbT3XXCy+N+z0EezQntrPoPwUc9p?= =?us-ascii?q?sgjfdUf7+++4j5ZRWPt/BklkHEWYGd4PVB2KLasKHlDGoH55vJ8HUPa4dFWB?= =?us-ascii?q?JNj8IK1xchD8iIBQyeTrbqYiU2Ed4EWApj+He2Yk1cAtjzY1mUqXq3vnYeHx?= =?us-ascii?q?zlPl9zIeL4UofZk8Ww0bW0/JveKwVFjTawe/V8NhKz+A7QrcIRx4BlL/U8?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0A3AAAVsOhe/4wNJK1mGwEBAQEBAQE?= =?us-ascii?q?BBQEBARIBAQEDAwEBAUCBOAQBAQELAYFRKSgHb1gvLAqEGoNGA409mFKBLhS?= =?us-ascii?q?BEANVCwEBAQwBASMKAgQBAYREAheBfgIkNgcOAgMBAQsBAQUBAQECAQYEbYV?= =?us-ascii?q?bDIVyAQEBAQMSEQQNDAEBNwELBAIBCBEEAQEDAiYCAgIwFQgIAgQBDQUIGoI?= =?us-ascii?q?5SwGCSwMuAQMLqjwCgTmIYXZ/M4MBAQEFhSAYgg4DBoEOKgGCY4ZCgyQaggC?= =?us-ascii?q?BEUOBT34+glwEF4ERARIBIxWCfTOCLY8RBIJUPKIhCiCCOog/kQCCcIkakl6?= =?us-ascii?q?EIYt/fYoNlCYCBAIEBQIOAQEFgVoDL2ZwcBWDJFAXAg2OHgwXg06KVnQ3AgY?= =?us-ascii?q?IAQEDCXyOVQGBEAEB?= X-IronPort-AV: E=Sophos;i="5.73,518,1583193600"; d="scan'208";a="508267199" Received: from alln-core-7.cisco.com ([173.36.13.140]) by alln-iport-5.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 16 Jun 2020 11:47:16 +0000 Received: from XCH-RCD-003.cisco.com (xch-rcd-003.cisco.com [173.37.102.13]) by alln-core-7.cisco.com (8.15.2/8.15.2) with ESMTPS id 05GBlFEi003384 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Tue, 16 Jun 2020 11:47:16 GMT Received: from xhs-aln-001.cisco.com (173.37.135.118) by XCH-RCD-003.cisco.com (173.37.102.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 16 Jun 2020 06:47:15 -0500 Received: from xhs-rcd-003.cisco.com (173.37.227.248) by xhs-aln-001.cisco.com (173.37.135.118) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 16 Jun 2020 06:47:14 -0500 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (72.163.14.9) by xhs-rcd-003.cisco.com (173.37.227.248) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Tue, 16 Jun 2020 06:47:14 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Bs9svC3DxQTFjdrReTzUmk5VclS/DS6IZ5R2OU8WqmFC0PkCdQvhMfP6AIfpgIUsICiEI/GNXyjJiG92y2pKwSq46qItSEo6ZdbJjUKeDYZD88pZf0NSaRSZF6zo/L1zlX/SukMMeUV/2hJaMOiO707Q0iMfAFacXP2hQ38axQ7UKgySd44IkFq7yHE9DFn7Pb/hq17bFJPcgcgmoPzztl2zpLeYpwv9Po2QBR2G9UDxDdwpAZCZj6yYAhL4c0hyO5nf/Ow3jRv/k0zGSshPNubOEnNhGoUnJsLHvbC1aKNA4UX3XqQbn++E9EVW8n8no6yQu9/2l1XnpMDlXTS9rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PjYAHi+qdnAagVIhPD+9aNbpPnO8PSv5StVzA7ApIxw=; b=dFRLQmaaEFJlIosa3aODV3JdVdFp1Q2uWD15GGJECt3mjEyBgMXSn3pfZZKGkKVpVQP5gyn/EhyZs+dF9G1OfqXYf3gaCpB4ScPr033ICVTRlEi17O0S61GkX1vC7/6mMIBox0ymxVmBGBuSGClKuTu8FwERcx6I7fsCplf4Sn1N3xr//WsEQZBvxuIg7sIAUfjgphbnRU6Gk2WogcQdBSWN0MlDaYXTe7q6cX7GCF1ApaIHkwAtVG3YPXUfPqlSf9klex30WxmIYX+0+Se64ls14FnEioC6UL2wynnGdz2tUCD+aLxUWlPuNSVzjcC4YTlgb8yNZ3BNxgHbsiQ3kg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PjYAHi+qdnAagVIhPD+9aNbpPnO8PSv5StVzA7ApIxw=; b=C/OQDEno9r345SvKTwD9xAux/HOjtKOxj2pkoM2BXJwYHc4PontOxQPhfu1JHBRr6vAw/wyvu3fTyKr8jO2JG91n4ODesjl8B8Vq2v/zVfO/35VS0PR6gEn4SLvi5QJ0tB1/5BA4XT87jtufqpU9FhsB8OxTaXa1YEOwnr9ehT0= Received: from BN6PR1101MB2211.namprd11.prod.outlook.com (2603:10b6:405:51::13) by BN6PR11MB3954.namprd11.prod.outlook.com (2603:10b6:405:79::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.21; Tue, 16 Jun 2020 11:47:13 +0000 Received: from BN6PR1101MB2211.namprd11.prod.outlook.com ([fe80::518c:428c:18c5:1421]) by BN6PR1101MB2211.namprd11.prod.outlook.com ([fe80::518c:428c:18c5:1421%3]) with mapi id 15.20.3088.028; Tue, 16 Jun 2020 11:47:13 +0000 From: "Jakub Grajciar -X (jgrajcia - PANTHEON TECH SRO at Cisco)" To: Sunil Kumar Kori , Muhammad Bilal CC: "declan.doherty@intel.com" , "tomasz.kantecki@intel.com" , "Pavan Nikhilesh Bhagavatula" , "dev@dpdk.org" , "vipin.varghese@intel.com" Thread-Topic: [EXT] [PATCH 1/5] examples/l2fwd-event: free resources in case of error Thread-Index: AQHWLcDVRy/1Hb2At0KOWTY2pxPa2KjFVrmAgAxp3QCACXxmYA== Date: Tue, 16 Jun 2020 11:47:13 +0000 Message-ID: References: <20200519085444.4562-1-m.bilal@emumba.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: marvell.com; dkim=none (message not signed) header.d=none;marvell.com; dmarc=none action=none header.from=cisco.com; x-originating-ip: [81.89.53.154] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: bb68f7d4-eb13-4aca-efc5-08d811eb02f2 x-ms-traffictypediagnostic: BN6PR11MB3954: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2582; x-forefront-prvs: 04362AC73B x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 7tuT2AIUSrjeK8qY2DIvQIb0pUMbemB4fKiwU6ZmzPSaHBOW40OCkcwftxwilVr2sv+WMVaZZKak4D2y8H6qJkWEYoHqM1c6SraEOJjhP4sR+51WUkDiE+C1ToDB5LW4gJIMwm1ak+ONroVAraAD8AMHMN3VrGL8O5HnJ2+nr7xDNAXIH6cHn/pbplML+Kzc4dnkjUNp6GICBYtKOJlXxLdev0DBNAXCKMVYLol/J8iugpi8/cF4mclxs5K8V3NEwgLv/r/viWkPqaeeO6RZESbWgf5p3sbyNzJzfUO7gyrp+2qJRDCsyFSh7QtSa+4nYLe3tQDH1o6ahmuLDQIo2d7+mRiyf4PzeI6wyLdG+Uu80GUnCzet723BQ9lwqFbG5XVWVghAjNxUMQStxh+ClA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN6PR1101MB2211.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(39860400002)(136003)(376002)(396003)(346002)(7696005)(53546011)(6506007)(33656002)(8936002)(54906003)(316002)(8676002)(110136005)(66446008)(4326008)(66476007)(2906002)(66556008)(66946007)(478600001)(64756008)(76116006)(5660300002)(55016002)(9686003)(52536014)(86362001)(26005)(71200400001)(83380400001)(186003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: hzOTjHtGyEilH4FXX47SMOXcJ8ZeTVUrl+BcT6RNFAj97jYbkGsR/ACl/WJvNSvwY1YdoCIA1Kd1xQOaWdgeSkT6V3WJsgFt8HpCFjaZgyvzNCxIcrV8UG6e/7g9y0tLFmKTdDjDJumuwMlHmAinWk3BHQvhiHdFbRjMQKzku3q+ihlnRNtnr1afjhmLghNj/eMxS6jaRDizz8QO/YdiF3HJAIWQVq/HdnVIQkp7YwOGcX/Jcq+C0WfX0EB6XkQ2mWZbmoUYpCoBPlZWGYUWY1fgMPUG/OYbJfIAnSlMzq8WeWWX4b+pJ6804l0QQZsqIeXxLJIYKLDXlG/d9WO8v58BxaR/a6UM355IvZfj7qGJ36Qva85ZWMicp1KpW76nSLA4b9HO4LzWWFOk1F8DeIU17EXgRTsY5FfxP4Sgcd5yZkJ1fgNVfGi3iOOZsfNkljNdqe3gjkPL+BbroZ6Wl8XTCXRTIkNLpXwmKREjKXE= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: bb68f7d4-eb13-4aca-efc5-08d811eb02f2 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jun 2020 11:47:13.4988 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: s61UtWpUuwvxQeJ2YCeINwQAxPTaMFsYEoZbZxagLMO2GRF2+v7VYtAG6/fdI7WmDKik5bWPbB1JgJMnSafgCA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB3954 X-OriginatorOrg: cisco.com X-Outbound-SMTP-Client: 173.37.102.13, xch-rcd-003.cisco.com X-Outbound-Node: alln-core-7.cisco.com Subject: Re: [dpdk-dev] [EXT] [PATCH 1/5] examples/l2fwd-event: free resources in case of error 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" DQoNCj4gLS0tLS1PcmlnaW5hbC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