Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
const char *inputSecretPath,
virStorageVolEncryptConvertStep convertStep)
{
- virCommand *cmd = NULL;
+ g_autoptr(virCommand) cmd = NULL;
struct _virStorageBackendQemuImgInfo info = {
.format = vol->target.format,
.type = NULL,
}
VIR_FREE(info.secretAlias);
- return cmd;
+ return g_steal_pointer(&cmd);
error:
VIR_FREE(info.secretAlias);
- virCommandFree(cmd);
return NULL;
}