smack: make smack_parse_opts_str() clean up on failure
fixes e.g. a btrfs leak... Reviewed-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
17f3b556a3
commit
6466f3d193
|
@ -735,6 +735,7 @@ out_err:
|
||||||
kfree(fshat);
|
kfree(fshat);
|
||||||
kfree(fsroot);
|
kfree(fsroot);
|
||||||
kfree(fstransmute);
|
kfree(fstransmute);
|
||||||
|
security_free_mnt_opts(opts);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue