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:
parent
51b97132b1
commit
85e4418502
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user