Commit 6466f3d1 authored by Al Viro's avatar Al Viro
Browse files

smack: make smack_parse_opts_str() clean up on failure



fixes e.g. a btrfs leak...

Reviewed-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 17f3b556
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -735,6 +735,7 @@ out_err:
	kfree(fshat);
	kfree(fsroot);
	kfree(fstransmute);
	security_free_mnt_opts(opts);
	return rc;
}