|
@@ -183,7 +183,7 @@ static void sym_validate_range(struct symbol *sym)
|
|
|
sprintf(str, "%lld", val2);
|
|
|
else
|
|
|
sprintf(str, "0x%llx", val2);
|
|
|
- sym->curr.val = strdup(str);
|
|
|
+ sym->curr.val = xstrdup(str);
|
|
|
}
|
|
|
|
|
|
static void sym_set_changed(struct symbol *sym)
|
|
@@ -849,7 +849,7 @@ struct symbol *sym_lookup(const char *name, int flags)
|
|
|
: !(symbol->flags & (SYMBOL_CONST|SYMBOL_CHOICE))))
|
|
|
return symbol;
|
|
|
}
|
|
|
- new_name = strdup(name);
|
|
|
+ new_name = xstrdup(name);
|
|
|
} else {
|
|
|
new_name = NULL;
|
|
|
hash = 0;
|