mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-17 12:48:41 +00:00
Fix last covs
This commit is contained in:
parent
6a9b0430db
commit
90480d325b
@ -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");
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user