Skip to content

Commit

Permalink
Fix minor memleak in pf
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Mar 21, 2022
1 parent dc3e8ff commit d22d160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libr/core/cmd_print.c
Expand Up @@ -1562,7 +1562,7 @@ static void cmd_print_format(RCore *core, const char *_input, const ut8* block,
}
} else {
const char *struct_name = r_str_trim_head_ro (_input);
const char *val = sdb_get (core->print->formats, struct_name, NULL);
const char *val = sdb_const_get (core->print->formats, struct_name, NULL);
if (val) {
r_cons_printf ("%s\n", val);
} else {
Expand Down

0 comments on commit d22d160

Please sign in to comment.