Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2017-12-09 20:04:46 +01:00
parent a55f31bda2
commit a61b4e8584
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -725,15 +725,9 @@ char *ovl_get_rootfs(const char *rootfs_path, size_t *rootfslen)
*s3 = '\0';
rootfsdir = strdup(s2);
if (!rootfsdir) {
free(s1);
return NULL;
}
free(s1);
if (!rootfsdir)
rootfsdir = s1;
else
free(s1);
return NULL;
*rootfslen = strlen(rootfsdir);