tools: use g_steal_pointer instead of VIR_STEAL_PTR

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Ján Tomko
2019-10-16 13:43:36 +02:00
parent 72a1bb8e4c
commit 4f7c65da27
13 changed files with 24 additions and 24 deletions

View File

@@ -62,7 +62,7 @@ virshSnapshotNameCompleter(vshControl *ctl,
goto cleanup;
}
VIR_STEAL_PTR(ret, tmp);
ret = g_steal_pointer(&tmp);
cleanup:
virshDomainFree(dom);