Fix last covs

This commit is contained in:
pancake 2017-06-05 13:23:39 +02:00
parent 6a9b0430db
commit 90480d325b
3 changed files with 10 additions and 2 deletions

View File

@ -771,6 +771,7 @@ static void GH(print_heap_graph)(RCore *core, GH(RHeap_MallocState) *main_arena,
RConsCanvas *can = r_cons_canvas_new (w, h);
if (!can) {
r_config_hold_free (hc);
return;
}
can->linemode = r_config_get_i (core->config, "graph.linemode");
can->color = r_config_get_i (core->config, "scr.color");

View File

@ -27,7 +27,6 @@ static int typeload(void *p, const char *k, const char *v) {
return -1;
}
int btype = 0;
CType *ctype = R_NEW0(CType);
RAnal *anal = (RAnal*)p;
//r_cons_printf ("tk %s=%s\n", k, v);
// TODO: Add unions support

View File

@ -204,10 +204,14 @@ int tcc_sym_push(char* typename, int typesize, int meta)
CType *new_type;
new_type = (CType*)malloc(sizeof(CType));
if (!new_type) {
return 0;
}
new_type->ref = sym_malloc();
new_type->t = meta;
sym_push(0, new_type, 0, 0);
return 1;
}
void dump_type(CType *type, int depth)
@ -1485,7 +1489,11 @@ static void type_decl(CType *type, AttributeDef *ad, int *v, int td)
int qualifiers, storage;
CType *type1 = R_NEW0(CType);
CType *type2 = R_NEW0(CType);
if (!type1 || !type2) return;
if (!type1 || !type2) {
free (type1);
free (type2);
return;
}
while (tok == '*') {
qualifiers = 0;