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.80.1 #2 (Red Hat Linux)) id 1aMWDM-0003q2-5Q for barebox@lists.infradead.org; Fri, 22 Jan 2016 07:33:02 +0000 From: Sascha Hauer Date: Fri, 22 Jan 2016 08:32:19 +0100 Message-Id: <1453447952-30818-2-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1453447952-30818-1-git-send-email-s.hauer@pengutronix.de> References: <1453447952-30818-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 01/14] ARM: zImage: add missing free() in appended device tree code To: Barebox List oftree must be freed when the tree is successfully unflattened. Signed-off-by: Sascha Hauer --- arch/arm/lib/bootm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c index 7bb9b43..2439c36 100644 --- a/arch/arm/lib/bootm.c +++ b/arch/arm/lib/bootm.c @@ -223,6 +223,7 @@ static int do_bootz_linux_fdt(int fd, struct image_data *data) ret = -EINVAL; goto err_free; } + free(oftree); } else { data->oftree = oftree; } -- 2.7.0.rc3 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox