UBI: mtd/ubi/vtbl.c: fix memory leak

This patch fixes a memory leak introduced by commit
4ccf8cffa963c7b5bdc6d455ea9417084ee49aa8 and spotted by the Coverity
checker.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>

authored by Adrian Bunk and committed by Artem Bityutskiy f7f02837 8eee9f10

+1
+1
drivers/mtd/ubi/vtbl.c
··· 519 519 if (ubi->autoresize_vol_id != -1) { 520 520 ubi_err("more then one auto-resize volume (%d " 521 521 "and %d)", ubi->autoresize_vol_id, i); 522 + kfree(vol); 522 523 return -EINVAL; 523 524 } 524 525