UBI: fix memory leak
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 4 Jun 2008 13:48:12 +0000 (16:48 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Mon, 25 May 2009 14:08:39 +0000 (17:08 +0300)
ubi_free_volume() function sets ubi->volumes[] to NULL, so
ubi_eba_close() is useless, it does not free what has to be freed.
So zap it and free vol->eba_tbl at the volume release function.

Pointed-out-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/build.c
drivers/mtd/ubi/eba.c
drivers/mtd/ubi/ubi.h
drivers/mtd/ubi/vmt.c

Simple merge
Simple merge
Simple merge
Simple merge