From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [119.145.14.64]) by dpdk.org (Postfix) with ESMTP id 85710593E for ; Tue, 19 Aug 2014 08:07:21 +0200 (CEST) Received: from 172.24.2.119 (EHLO SZXEMA406-HUB.china.huawei.com) ([172.24.2.119]) by szxrg01-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id CAM20945; Tue, 19 Aug 2014 14:10:45 +0800 (CST) Received: from SZXEMA505-MBX.china.huawei.com ([169.254.1.3]) by SZXEMA406-HUB.china.huawei.com ([10.82.72.38]) with mapi id 14.03.0158.001; Tue, 19 Aug 2014 14:10:39 +0800 From: "Zhangkun (K)" To: "Zhang, Helin" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] there are some memory leak about Dir operator Thread-Index: AQHPu19eT+LS3/3k/0egaRKzhXJK8JvXSuqggAAO0CA= Date: Tue, 19 Aug 2014 06:10:38 +0000 Message-ID: <0FCB215400789046A95ECE23C3E46C515F956183@szxema505-mbx.china.huawei.com> References: <1408419580-19684-1-git-send-email-zhang.zhangkun@huawei.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.177.25.235] Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Subject: [dpdk-dev] =?gb2312?b?tPC4tDogIFtQQVRDSF0gdGhlcmUgYXJlIHNvbWUg?= =?gb2312?b?bWVtb3J5IGxlYWsgYWJvdXQgRGlyIG9wZXJhdG9y?= X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Aug 2014 06:07:23 -0000 SGksIEhlbGluDQpUaGlzIGlzIG5vIHByb2JsZW0gd2l0aCB0aGUgT1MgZ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