kernel: fix a memory leak in split_rootfs_data()