coverity: #1426028

parent 7ed560ca
......@@ -722,15 +722,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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment