Return-path: Received: from eusmtp01.atmel.com ([212.144.249.243]:52231 "EHLO eusmtp01.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751715AbbG1Fes (ORCPT ); Tue, 28 Jul 2015 01:34:48 -0400 From: "Park, Chris" To: David Binderman , "Kim, Johnny" , "Kim, Rachel" , "Lee, Dean" , "linux-wireless@vger.kernel.org" Subject: RE: linux-4.2-rc4/drivers/staging/wilc1000/linux_mon.c:264: memory leak ? Date: Tue, 28 Jul 2015 05:33:53 +0000 Message-ID: <9F325F9AF694F142A7DAB1FCFDC3B7BA5401F40E@penmbx01> (sfid-20150728_073451_573323_CB05FA9D) References: ,<55B5F38F.6070001@atmel.com> In-Reply-To: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: SGkgRGF2aWQuDQoNClNvcnJ5LCBJIGRpZCBub3QgdGhpbmsgYWJvdXQgdGhhdC4NClRoaXMgaXMg YSB2ZXJ5IGdvb2QgcG9pbnQgYW5kIHN1Z2dlc3Rpb24uDQoNCkkgd2lsbCBjaGVjayBhbmQgZml4 IHNvdXJjZSBjb2RlLg0KDQpUaGFuayB5b3UgZm9yIHlvdXIgYWR2aWNlLg0KDQpCUi4NCkNocmlz Lg0KDQoNCi0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQpGcm9tOiBEYXZpZCBCaW5kZXJtYW4g W21haWx0bzpkY2IzMTRAaG90bWFpbC5jb21dIA0KU2VudDogTW9uZGF5LCBKdWx5IDI3LCAyMDE1 IDc6MDEgUE0NClRvOiBQYXJrLCBDaHJpczsgS2ltLCBKb2hubnk7IEtpbSwgUmFjaGVsOyBMZWUs IERlYW47IGxpbnV4LXdpcmVsZXNzQHZnZXIua2VybmVsLm9yZw0KU3ViamVjdDogUkU6IGxpbnV4 LTQuMi1yYzQvZHJpdmVycy9zdGFnaW5nL3dpbGMxMDAwL2xpbnV4X21vbi5jOjI2NDogbWVtb3J5 IGx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