mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-27 07:00:30 +00:00
Fix memleak (#11338)
This commit is contained in:
parent
50168b07ed
commit
f538120c04
@ -1180,10 +1180,12 @@ int main(int argc, char **argv, char **envp) {
|
||||
} else {
|
||||
eprintf ("Missing file to open\n");
|
||||
}
|
||||
return 1;
|
||||
ret = 1;
|
||||
goto beach;
|
||||
}
|
||||
if (!r.file) { // no given file
|
||||
return 1;
|
||||
ret = 1;
|
||||
goto beach;
|
||||
}
|
||||
if (r.bin->cur && r.bin->cur->o && r.bin->cur->o->info && r.bin->cur->o->info->rclass && !strcmp ("fs", r.bin->cur->o->info->rclass)) {
|
||||
const char *fstype = r.bin->cur->o->info->bclass;
|
||||
|
Loading…
Reference in New Issue
Block a user