fix double free on register

closes #4634

can we please review/revert/something
4c04b98b47 (diff-fa45250699a39a7bffd1e27da12ec5beR40)

i'm fearful this has broken a lot more stuff
This commit is contained in:
Jeffrey Crowell 2016-04-13 21:30:48 -04:00
parent adc9922c6a
commit 6b17cfc55a

View File

@ -37,7 +37,7 @@ R_API bool r_debug_use(RDebug *dbg, const char *str) {
if (p) {
r_reg_set_profile_string (dbg->reg, p);
if (dbg->anal) {
r_reg_free (dbg->anal->reg);
//r_reg_free (dbg->anal->reg);
dbg->anal->reg = dbg->reg;
}
if (dbg->h->init)