Fix another memleak that may be properly fixed with reftype in 5.9

This commit is contained in:
pancake 2023-02-08 20:42:46 +01:00
parent 719b59cdd0
commit 168088927f
2 changed files with 2 additions and 0 deletions

View File

@ -3176,6 +3176,7 @@ R_API bool r_core_init(RCore *core) {
r_bin_bind (core->bin, &(core->anal->binb));
r_bin_bind (core->bin, &(core->anal->arch->binb));
r_num_free (core->anal->arch->num);
core->anal->arch->num = core->num;
r_io_bind (core->io, &(core->search->iob));
r_io_bind (core->io, &(core->print->iob));

View File

@ -55,6 +55,7 @@ typedef struct r_num_t {
void *userptr;
int dbz; /// division by zero happened
RNumCalc nc;
// R2_590 R_REF_TYPE
} RNum;
typedef ut64 (*RNumCallback)(struct r_num_t *self, const char *str, int *ok);