mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
tests: use g_new() family of functions
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> [PMD: split of some files in other commits of the same series, add libqtest.c] Acked-by: John Snow <jsnow@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
d3c9218840
commit
790bbb9768
7 changed files with 11 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue