bootstrap_read_devfs(): Fix potential memory leak
In case of a failure in one of the cdev_* functions original version
of bootstrap_read_devfs would not release memory allocated for barebox
header or memory allocated for the image. This commit fixes this by
adding resource deallocation code.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent d26ed41 commit 065d75c341ed473f51c7f7e486f09419387d9894
@Andrey Smirnov Andrey Smirnov authored on 6 May 2015
Sascha Hauer committed on 7 May 2015
Showing 1 changed file
View
lib/bootstrap/devfs.c