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)
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

Simple merge