smack: make smack_parse_opts_str() clean up on failure

fixes e.g. a btrfs leak...

Reviewed-by: David Howells <[email protected]>
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
Al Viro 2018-12-01 22:55:40 -05:00
commit 6466f3d193

View file

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