summaryrefslogtreecommitdiffstats
path: root/migration
diff options
context:
space:
mode:
authorPaolo Bonzini2019-03-12 14:50:50 +0100
committerPaolo Bonzini2019-03-12 15:18:40 +0100
commit5e78bc6a47dd064c63fbf03d01ec4a3c811157e9 (patch)
tree694c7c1577b3e46c7a83011309c7a7a78d197a05 /migration
parenttest-bdrv-graph-mod: fix Error leak (diff)
downloadqemu-5e78bc6a47dd064c63fbf03d01ec4a3c811157e9.tar.gz
qemu-5e78bc6a47dd064c63fbf03d01ec4a3c811157e9.tar.xz
qemu-5e78bc6a47dd064c63fbf03d01ec4a3c811157e9.zip
migration: fix memory leak
Reported by ASAN. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'migration')
-rw-r--r--migration/socket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/migration/socket.c b/migration/socket.c
index 239527fb1f..49bacf78fd 100644
--- a/migration/socket.c
+++ b/migration/socket.c
@@ -199,6 +199,7 @@ static void socket_start_incoming_migration(SocketAddress *saddr,
return;
}
migrate_add_address(address);
+ qapi_free_SocketAddress(address);
}
}