From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.x-arc.de ([217.6.246.34] helo=root.phytec.de) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1b4lEJ-0000K7-6x for barebox@lists.infradead.org; Mon, 23 May 2016 08:28:54 +0000 Received: from idefix.phytec.de (idefix.phytec.de [172.16.0.10]) by root.phytec.de (Postfix) with ESMTP id 764B0A00CC7 for ; Mon, 23 May 2016 10:28:23 +0200 (CEST) From: Teresa Remmet Date: Mon, 23 May 2016 10:26:11 +0200 Message-Id: <1463992010-31537-24-git-send-email-t.remmet@phytec.de> In-Reply-To: <1463992010-31537-1-git-send-email-t.remmet@phytec.de> References: <1463992010-31537-1-git-send-email-t.remmet@phytec.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 23/62] UBI: Fastmap: Fix memory leaks while closing the WL sub-system To: barebox@lists.infradead.org RnJvbTogUmljaGFyZCBXZWluYmVyZ2VyIDxyaWNoYXJkQG5vZC5hdD4KCkFkZCBhIHViaV9mYXN0 bWFwX2Nsb3NlKCkgdG8gZnJlZSBhbGwgcmVzb3VyY2VzIHVzZWQgYnkgZmFzdG1hcAphdCBXTCBz aHV0ZG93bi4KClNpZ25lZC1vZmYtYnk6IFJpY2hhcmQgV2VpbmJlcmdlciA8cmljaGFyZEBub2Qu YXQ+ClRlc3RlZC1ieTogR3VpZG8gTWFydMOtbmV6IDxndWlkb0B2YW5ndWFyZGlhc3VyLmNvbS5h cj4KUmV2aWV3ZWQtYnk6IEd1aWRvIE1hcnTDrW5leiA8Z3VpZG9AdmFuZ3VhcmRpYXN1ci5jb20u YXI+Ci0tLQogZHJpdmVycy9tdGQvdWJpL3dsLmMgfCAxNyArKysrKysrKysrKysrKysrKwogMS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