The error path properly frees them already. Signed-off-by: Lucas Stach <dev@xxxxxxxxxx> --- common/imx-bbu-nand-fcb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/common/imx-bbu-nand-fcb.c b/common/imx-bbu-nand-fcb.c index ce00ed4..1db4c5a 100644 --- a/common/imx-bbu-nand-fcb.c +++ b/common/imx-bbu-nand-fcb.c @@ -658,7 +658,6 @@ static int dbbt_check(struct mtd_info *mtd, int page) needs_cleanup = 1; } else if (ret < 0) { pr_err("Cannot read page %d: %s\n", page, strerror(-ret)); - free(dbbt_entries); goto out; } } else { -- 2.7.4 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox