ext4: fix memleak in ext4_readdir()
authorKirill Tkhai <ktkhai@virtuozzo.com>
Tue, 16 Feb 2016 05:20:19 +0000 (00:20 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 16 Feb 2016 05:20:19 +0000 (00:20 -0500)
commitc906f38e8853cfd407b30d2f4756a93c1d8f698f
tree0b5b36250b418721d72c3321294807604c66ed2e
parent56263b4ceba90b1db77a6b31e22726f101bca807
ext4: fix memleak in ext4_readdir()

When ext4_bread() fails, fname_crypto_str remains
allocated after return. Fix that.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
CC: Dmitry Monakhov <dmonakhov@virtuozzo.com>
fs/ext4/dir.c