Skip to content

Commit

Permalink
Fix memleak in /B
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Dec 27, 2024
1 parent cd82e41 commit e45b9f1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libr/core/cmd_search.inc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4124,9 +4124,6 @@ static void appendbaddr(RList *res, ut64 n) {
if (n > BADDR_MAX) {
return;
}
if (!n) {
return;
}
ut8 lo = ((n >> 16) & 0xff);
ut8 hi = ((n >> 24) & 0xff);
if (lo == 0xff || hi == 0xff) {
Expand Down Expand Up @@ -4242,6 +4239,7 @@ static void cmd_search_baddr(RCore *core, const char *input) {
}
r_list_free (res);
}
r_list_free (bounds);
}

static int cmd_search(void *data, const char *input) {
Expand Down

0 comments on commit e45b9f1

Please sign in to comment.