err = exec_mount(source, target, fstype, mount_opts);
}
+ free(mount_opts);
+
return err;
}
if (!mp)
return -1;
- if (!strcmp(mp, "/") && !all)
+ if (!strcmp(mp, "/") && !all) {
+ free(mp);
return 0;
-
+ }
if (type != TYPE_AUTOFS)
blockd_notify("umount", basename(path), NULL, NULL);