ext4: memory leak on error in ext4_symlink()

We should release "sd" before returning.

Fixes: 0fa12ad1b285 ('ext4: Handle error from dquot_initialize()')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jan Kara <jack@suse.com>
This commit is contained in:
Dan Carpenter 2015-07-24 14:05:33 +03:00 committed by Jan Kara
parent debeb29792
commit 926631c201

View File

@ -3084,7 +3084,7 @@ static int ext4_symlink(struct inode *dir,
err = dquot_initialize(dir);
if (err)
return err;
goto err_free_sd;
if ((disk_link.len > EXT4_N_BLOCKS * 4)) {
/*