Skip to content

Commit

Permalink
Dup value string in hex_cfg_set()
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 committed May 9, 2024
1 parent ef8ee18 commit 77f9f15
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 77f9f15

Please sign in to comment.