diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index dd12dc8550a4b27dc682308b874a9d048524dcb4..5aa715e1b2d9948c54247b9abd6d4722def9333b 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -5065,9 +5065,9 @@ endjob: vm = NULL; cleanup: - VIR_FREE(tmp); VIR_FORCE_CLOSE(fd); unlink (tmp); + VIR_FREE(tmp); if (vm) virDomainObjUnlock(vm); return ret;