qemu: process: Fix the return value in qemuProcessSEVCreateFile

When commit 6718132d enforced usage of the cleanup label, it forgot to
set the @ret variable to 0 on "success" exit path.

Signed-off-by: Luyao Huang <lhuang@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
Luyao Huang 2018-06-20 17:05:02 +08:00 committed by Erik Skultety
parent 6d490ed0d8
commit e039a83064
1 changed files with 1 additions and 0 deletions

View File

@ -5842,6 +5842,7 @@ qemuProcessSEVCreateFile(const char *configDir,
goto cleanup;
}
ret = 0;
cleanup:
VIR_FREE(configFile);
return ret;