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 1E445A0519; Fri, 3 Jul 2020 09:01:07 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3767B1D9F0; Fri, 3 Jul 2020 09:01:06 +0200 (CEST) Received: from huawei.com (szxga02-in.huawei.com [45.249.212.188]) by dpdk.org (Postfix) with ESMTP id BE1891D9E1; Fri, 3 Jul 2020 09:01:04 +0200 (CEST) Received: from DGGEMM404-HUB.china.huawei.com (unknown [172.30.72.55]) by Forcepoint Email with ESMTP id 690A6D8A0ADEBA73DAD0; Fri, 3 Jul 2020 15:01:03 +0800 (CST) Received: from DGGEMM421-HUB.china.huawei.com (10.1.198.38) by DGGEMM404-HUB.china.huawei.com (10.3.20.212) with Microsoft SMTP Server (TLS) id 14.3.487.0; Fri, 3 Jul 2020 15:01:02 +0800 Received: from DGGEMM513-MBX.china.huawei.com ([169.254.1.144]) by dggemm421-hub.china.huawei.com ([10.1.198.38]) with mapi id 14.03.0487.000; Fri, 3 Jul 2020 15:00:53 +0800 From: wangyunjian To: Jeff Guo , "dev@dpdk.org" CC: "Lilijun (Jerry)" , xudingke , "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v3 1/2] eal: fix memory leak when removing event_cb Thread-Index: AQHWUGaJ/uJuVw8JCE+V381UrRUT46j02MoAgACIvEA= Date: Fri, 3 Jul 2020 07:00:53 +0000 Message-ID: <34EFBCA9F01B0748BEB6B629CE643AE60D09900C@dggemm513-mbx.china.huawei.com> References: <1593690428-12708-1-git-send-email-wangyunjian@huawei.com> <4c7becd3-4d64-0e20-ea16-d1bd7b4bd6a2@intel.com> In-Reply-To: <4c7becd3-4d64-0e20-ea16-d1bd7b4bd6a2@intel.com> Accept-Language: en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.174.185.168] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Subject: Re: [dpdk-dev] [PATCH v3 1/2] eal: fix memory leak when removing event_cb 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" SGksIEplZmYNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBKZWZmIEd1 byBbbWFpbHRvOmppYS5ndW9AaW50ZWwuY29tXQ0KPiBTZW50OiBGcmlkYXksIEp1bHkgMywgMjAy MCAyOjA1IFBNDQo+IFRvOiB3YW5neXVuamlhbiA8d2FuZ3l1bmppYW5AaHVhd2VpLmNvbT47IGRl dkBkcGRrLm9yZw0KPiBDYzogTGlsaWp1biAoSmVycnkpIDxqZXJyeS5saWxpanVuQGh1YXdlaS5j b20+OyB4dWRpbmdrZQ0KPiA8eHVkaW5na2VAaHVhd2VpLmNvbT47IHN0YWJsZUBkcGRrLm9yZw0K PiBTdWJqZWN0OiBSZTogW2RwZGstZGV2XSBbUEFUQ0ggdjMgMS8yXSBlYWw6IGZpeCBtZW1vcnkg bGVhayB3aGVuIHJlbW92aW5nDQo+IGV2ZW50X2NiDQo+IA0KPiBoaSwgeXVuamlhbg0KPiANCj4g T24gNy8yLzIwMjAgNzo0NyBQTSwgd2FuZ3l1bmppYW4gd3JvdGU6DQo+ID4gRnJvbTogWXVuamlh biBXYW5nIDx3YW5neXVuamlhbkBodWF3ZWkuY29tPg0KPiA+DQo+ID4gVGhlIGV2ZW50X2NiLT5k ZXZfbmFtZSBpcyBub3QgZnJlZWQgd2hlbiBmcmVlaW5nIGV2ZW50X2NiLCBhbmQgdGhpcw0KPiA+ IGNhdXNlcyBhIG1lbW9yeSBsZWFrLg0KPiA+DQo+ID4gRml4ZXM6IGE3NTNlNTNk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