Skip to content

Commit

Permalink
JSON mode changes
Browse files Browse the repository at this point in the history
  • Loading branch information
HN026 committed Mar 31, 2024
1 parent 03204e8 commit a2ef3ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions librz/core/canalysis.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,10 @@ static RZ_OWN char *bb_info_to_string(RzCore *core, RzAnalysisFunction *fcn, RzA
pj_ki(pj, "ninstr", bb->ninstr);
pj_kb(pj, "traced", bb->traced);
pj_end(pj);
char *json_str = strdup(pj_string(pj));
char *json_str = rz_str_dup(pj_string(pj));
pj_free(pj);
return json_str;
rz_strbuf_append(buf, json_str);
break;
}
case RZ_OUTPUT_MODE_TABLE:
table_str = rz_table_tostring(t);
Expand Down

0 comments on commit a2ef3ea

Please sign in to comment.