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:
Al Viro 2018-12-01 22:55:40 -05:00
parent 17f3b556a3
commit 6466f3d193
1 changed files with 1 additions and 0 deletions

View File

@ -735,6 +735,7 @@ out_err:
kfree(fshat);
kfree(fsroot);
kfree(fstransmute);
security_free_mnt_opts(opts);
return rc;
}