Skip to content

Commit

Permalink
Fix double free when using themes in static builds
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Nov 21, 2023
1 parent 0ec20ce commit 607d696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libr/core/cmd_eval.inc.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ static bool cmd_load_theme(RCore *core, const char *_arg) {
while (theme && theme->name) {
if (!strcmp (theme->name, arg)) {
r_core_cmd0 (core, theme->script);
free (arg);
R_FREE (arg);
failed = false;
break;
}
Expand Down

0 comments on commit 607d696

Please sign in to comment.