From 006a13026a4152c534134bd37daac5b56500cc1a Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 26 Apr 2019 08:25:26 -0400 Subject: [PATCH] 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. --- qemu/tcg/tcg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu/tcg/tcg.c b/qemu/tcg/tcg.c index 8c4f7387..0204b762 100644 --- a/qemu/tcg/tcg.c +++ b/qemu/tcg/tcg.c @@ -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;