Fix CID 1240150, 1240149, 1240151

This commit is contained in:
Skia 2014-09-23 08:48:58 +02:00 committed by pancake
parent 34365c7bb3
commit baf8a068b7
3 changed files with 4 additions and 2 deletions

View File

@ -157,6 +157,7 @@ static RList *symbols(RBinFile *arch) {
r_list_append (ret, ptr);
i += obj->symbols[i].n_numaux;
free (ptr);
}
return ret;

View File

@ -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 ' ':

View File

@ -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 = '.';