Fix hexagon double free under -q
This is a cherry-pick of rizinorg/rz-hexagon@d24f455204 done by hand.
This commit is contained in:
parent
416fc1e13f
commit
e80c45038a
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ static bool hex_cfg_set(void *user, void *data) {
|
|||
}
|
||||
if (cnode) {
|
||||
pnode->i_value = cnode->i_value;
|
||||
pnode->value = cnode->value;
|
||||
pnode->value = strdup(cnode->value);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue