mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
Always free network and graphics cookies
qemuMigrationEatCookie has flags to control if these should be parsed, but it does not fill mig->flags. These cookies might get leaked if these flags are not set by qemuMigrationBakeCookie. 42 (32 direct, 10 indirect) bytes in 1 blocks are definitely lost in loss record 361 of 662 ==123== by 0x1BA33FCA: qemuMigrationEatCookie (qemu_migration.c:678) ==123== by 0x1BA34A1E: qemuMigrationRun (qemu_migration.c:3108) ==123== by 0x1BA3622B: doNativeMigrate (qemu_migration.c:3343) ==123== by 0x1BA3B408: qemuMigrationPerform (qemu_migration.c:4138)
This commit is contained in:
parent
09b48562aa
commit
102eb00c28
@ -202,11 +202,8 @@ static void qemuMigrationCookieFree(qemuMigrationCookiePtr mig)
|
||||
if (!mig)
|
||||
return;
|
||||
|
||||
if (mig->flags & QEMU_MIGRATION_COOKIE_GRAPHICS)
|
||||
qemuMigrationCookieGraphicsFree(mig->graphics);
|
||||
|
||||
if (mig->flags & QEMU_MIGRATION_COOKIE_NETWORK)
|
||||
qemuMigrationCookieNetworkFree(mig->network);
|
||||
qemuMigrationCookieGraphicsFree(mig->graphics);
|
||||
qemuMigrationCookieNetworkFree(mig->network);
|
||||
|
||||
VIR_FREE(mig->localHostname);
|
||||
VIR_FREE(mig->remoteHostname);
|
||||
|
Loading…
x
Reference in New Issue
Block a user