From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9Zb9-0005Qy-V0 for barebox@lists.infradead.org; Mon, 08 Oct 2018 17:45:41 +0000 From: =?UTF-8?q?Ulrich=20=C3=96lmann?= Date: Mon, 8 Oct 2018 19:45:23 +0200 Message-Id: <20181008174523.25757-1-u.oelmann@pengutronix.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] state: backend_bucket_circular: fix memory leak To: Barebox List U2lnbmVkLW9mZi1ieTogVWxyaWNoIMOWbG1hbm4gPHUub2VsbWFubkBwZW5ndXRyb25peC5kZT4K LS0tCiBjb21tb24vc3RhdGUvYmFja2VuZF9idWNrZXRfY2lyY3VsYXIuYyB8IDExICsrKysrKyst LS0tCiAxIGZpbGUgY2hhbmdlZCwgNyBpbnNlcnRpb25zKCspLCA0IGRlbGV0aW9ucygtKQoKZGlm ZiAtLWdpdCBhL2NvbW1vbi9zdGF0ZS9iYWNrZW5kX2J1Y2tldF9jaXJjdWxhci5jIGIvY29tbW9u L3N0YXRlL2JhY2tlbmRfYnVja2V0X2NpcmN1bGFyLmMKaW5kZXggMDUyOTQyMWEyYzJmLi4yNzdi OTRkNzk3MzcgMTAwNjQ0Ci0tLSBhL2NvbW1vbi9zdGF0ZS9iYWNrZW5kX2J1Y2tldF9jaXJjdWxh ci5jCisrKyBiL2NvbW1vbi9zdGF0ZS9iYWNrZW5kX2J1Y2tldF9jaXJjdWxhci5jCkBAIC00ODAs NyArNDgwLDggQEAgaW50IHN0YXRlX2JhY2tlbmRfYnVja2V0X2NpcmN1bGFyX2NyZWF0ZShzdHJ1 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