Return-path: Received: from dub004-omc3s12.hotmail.com ([157.55.2.21]:57158 "EHLO DUB004-OMC3S12.hotmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753031AbbG0KB3 (ORCPT ); Mon, 27 Jul 2015 06:01:29 -0400 Message-ID: (sfid-20150727_120133_835078_CCFC49D5) From: David Binderman To: Chris Park , "johnny.kim@atmel.com" , "rachel.kim@atmel.com" , "dean.lee@atmel.com" , "linux-wireless@vger.kernel.org" Subject: RE: linux-4.2-rc4/drivers/staging/wilc1000/linux_mon.c:264: memory leak ? Date: Mon, 27 Jul 2015 10:01:27 +0000 In-Reply-To: <55B5F38F.6070001@atmel.com> References: ,<55B5F38F.6070001@atmel.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: SGVsbG8gdGhlcmUsCgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwo+IGJ1dCBJdCBp cyBub3QgbWVtb3J5IGxlYWsgYmVjYXVzZSBJZiB0eCBxdWV1ZSBpcyBjb21wbGV0ZSwga2ZyZWUo KSBpcyAgCj4gY2FsbGVkIGluIG1nbXRfdHhfY29tcGxldGUoKSBmdW50aW9uLiAKCk1heWJlIEkn dmUgYmVlbiBzbGlnaHRseSBsZXNzIHRoYW4gY2xlYXIuIEknbGwgaGF2ZSBhbm90aGVyIGdvLgoK VGhlcmUgaXMgYSBjYWxsIHRvIGttYWxsb2MgYXJvdW5kIGxpbmUgMjUwLgoKU291cmNlIGNvZGUg aXMKCsKgwqDCoCBtZ210X3R4ID0ga21hbGxvYyhzaXplb2Yoc3RydWN0IHR4X2NvbXBsZXRlX21v bl9kYXRhKSwgR0ZQX0FUT01JQyk7CgpBIGZldyBsaW5lcyBsYXRlciBpcyBhIHNlY29uZCBjYWxs IHRvIGttYWxsb2MKCsKgwqAgbWdtdF90eC0+YnVmZiA9IGttYWxsb2MobGVuLCBHRlBfQVRPTUlD KTsKCklmIHRoZSBzZWN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