jffs2: fix a memleak in read_direntry()
authorWei Fang <fangwei1@huawei.com>
Tue, 29 Sep 2015 03:23:55 +0000 (11:23 +0800)
committerBrian Norris <computersforpeace@gmail.com>
Sun, 4 Oct 2015 21:30:50 +0000 (22:30 +0100)
commiteb042ec35956de2684de2a05a814cd15efe570ca
treecff4d30836e4f892dee29c12e2dfaf4f8ce88a25
parentd54e88011d0a5fb48d9bb60fede3e83375c75841
jffs2: fix a memleak in read_direntry()

Need to free the memory allocated for 'fd' if failed to read all
of the remainder name.

Signed-off-by: Wei Fang <fangwei1@huawei.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
fs/jffs2/readinode.c