mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-02 18:27:18 +00:00
Fix CID 1135013
This commit is contained in:
parent
38b8d59764
commit
e1d3a641a4
@ -90,6 +90,7 @@ R_API RFSRoot *r_fs_mount (RFS* fs, const char *fstype, const char *path, ut64 d
|
||||
else if (len > lenstr && root->path[lenstr] == '/')
|
||||
continue;
|
||||
eprintf ("r_fs_mount: Invalid mount point\n");
|
||||
free (str);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
@ -97,12 +98,14 @@ R_API RFSRoot *r_fs_mount (RFS* fs, const char *fstype, const char *path, ut64 d
|
||||
if (file) {
|
||||
r_fs_close (fs, file);
|
||||
eprintf ("r_fs_mount: Invalid mount point\n");
|
||||
free (str);
|
||||
return NULL;
|
||||
} else {
|
||||
list = r_fs_dir (fs, str);
|
||||
if (!r_list_empty (list)) {
|
||||
//XXX: list need free ??
|
||||
eprintf ("r_fs_mount: Invalid mount point\n");
|
||||
free (str);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user