Skip to content

Commit

Permalink
Use R_NEW instead of malloc
Browse files Browse the repository at this point in the history
  • Loading branch information
satk0 committed Aug 1, 2024
1 parent d13a826 commit e670595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion afen/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ static int r_core_call_afen(void *user, const char *input) {

if (updated) return true;

repl = (RAfenRepl*) malloc (sizeof (RAfenRepl));
repl = R_NEW (RAfenRepl);
repl->new_name = argv[1];
repl->old_name = argv[2];

Expand Down

0 comments on commit e670595

Please sign in to comment.