In the Linux kernel, the following vulnerability has been resolved:
btrfs: fix possible memory leak in btrfsgetdevargsfrom_path()
In btrfsgetdevargsfrompath(), btrfsgetbdevandsb() can fail if the path is invalid. In this case, btrfsgetdevargsfrompath() returns directly without freeing args->uuid and args->fsid allocated before, which causes memory leak.
To fix these possible leaks, when btrfsgetbdevandsb() fails, btrfsputdevargsfrom_path() is called to clean up the memory.