1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-23 21:34:54 +03:00

util: Use glib memory functions in virThreadCreateFull

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Tim Wiederhake 2020-09-11 13:42:05 +02:00 committed by Ján Tomko
parent 51b97132b1
commit 85e4418502

View File

@ -253,11 +253,8 @@ int virThreadCreateFull(virThreadPtr thread,
if ((err = pthread_attr_init(&attr)) != 0)
goto cleanup;
if (VIR_ALLOC_QUIET(args) < 0) {
err = ENOMEM;
goto cleanup;
}
args = g_new0(struct virThreadArgs, 1);
args->func = func;
args->name = g_strdup(name);
args->worker = worker;