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