diff --git a/librz/arch/p/asm/asm_hexagon.c b/librz/arch/p/asm/asm_hexagon.c index 9567f70d013..91a373a4feb 100644 --- a/librz/arch/p/asm/asm_hexagon.c +++ b/librz/arch/p/asm/asm_hexagon.c @@ -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;