mirror of
https://github.com/radareorg/radare2.git
synced 2025-03-03 03:35:37 +00:00
Fix CID 1240150, 1240149, 1240151
This commit is contained in:
parent
34365c7bb3
commit
baf8a068b7
@ -157,6 +157,7 @@ static RList *symbols(RBinFile *arch) {
|
||||
r_list_append (ret, ptr);
|
||||
|
||||
i += obj->symbols[i].n_numaux;
|
||||
free (ptr);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
@ -95,10 +95,10 @@ static int cmd_type(void *data, const char *input) {
|
||||
eprintf ("This is not an enum\n");
|
||||
}
|
||||
#endif
|
||||
free (s);
|
||||
} else {
|
||||
eprintf ("Missing value\n");
|
||||
}
|
||||
free (s);
|
||||
}
|
||||
break;
|
||||
case 'e':
|
||||
@ -117,10 +117,10 @@ static int cmd_type(void *data, const char *input) {
|
||||
} else {
|
||||
eprintf ("This is not an enum\n");
|
||||
}
|
||||
free (s);
|
||||
} else {
|
||||
eprintf ("Missing value\n");
|
||||
}
|
||||
free (s);
|
||||
}
|
||||
break;
|
||||
case ' ':
|
||||
|
@ -623,6 +623,7 @@ R_API int r_print_format(RPrint *p, ut64 seek, const ut8* b, const int len,
|
||||
char *par = strchr (n, ')');
|
||||
if (par == NULL) {
|
||||
eprintf ("No end parenthesis for struct name");
|
||||
free (n);
|
||||
goto beach;
|
||||
} else {
|
||||
*par = '.';
|
||||
|
Loading…
x
Reference in New Issue
Block a user