Skip to content

Commit

Permalink
Fix hexagon double free under -q
Browse files Browse the repository at this point in the history
This is a cherry-pick of rizinorg/rz-hexagon@d24f455 done by hand.
  • Loading branch information
kazarmy authored May 10, 2024
1 parent 416fc1e commit e80c450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librz/arch/p/asm/asm_hexagon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e80c450

Please sign in to comment.