UBI: fix memory leak on error path
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 4 Jun 2008 14:58:37 +0000 (17:58 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Mon, 25 May 2009 14:08:40 +0000 (17:08 +0300)
commit5ebae0e7ccd3bf63a894a00dda493ec35267953a
treed8b38abda768ffff5157d95932570c282e6179cc
parent5da2c7737ac8e6b1bd858f2ff585c832ff687e72
UBI: fix memory leak on error path

Normally UBI volumes are freed in the release function of
the struct device object. However, on error path they may
have to be freed before the struct device objects have been
initialized.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/build.c