diff options
Diffstat (limited to 'tests/pc-cpu-test.c')
-rw-r--r-- | tests/pc-cpu-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/pc-cpu-test.c b/tests/pc-cpu-test.c index c4211a4..11d3e81 100644 --- a/tests/pc-cpu-test.c +++ b/tests/pc-cpu-test.c @@ -87,7 +87,7 @@ static void add_pc_test_case(const char *mname) if (!g_str_has_prefix(mname, "pc-")) { return; } - data = g_malloc(sizeof(PCTestData)); + data = g_new(PCTestData, 1); data->machine = g_strdup(mname); data->cpu_model = "Haswell"; /* 1.3+ theoretically */ data->sockets = 1; |