tcg: Remove inconsistent g_strdup usage

The ts's name was allocated with strdup, but ts2's was being done with
g_strdup. Makes them consistent with upstream Qemu.
This commit is contained in:
Lioncash 2019-04-26 08:25:26 -04:00
parent 6d80445fe1
commit 006a13026a
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -636,7 +636,7 @@ TCGTemp *tcg_global_mem_new_internal(TCGContext *s, TCGType type, TCGv_ptr base,
ts2->mem_offset = offset + (1 - bigendian) * 4;
pstrcpy(buf, sizeof(buf), name);
pstrcat(buf, sizeof(buf), "_1");
ts2->name = g_strdup(buf);
ts2->name = strdup(buf);
} else {
ts->base_type = type;
ts->type = type;