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:
Al Viro
2018-12-01 22:55:40 -05:00
committed by bengris32
parent 077e6fb07b
commit aab4b4f6a5

View File

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