aboutsummaryrefslogtreecommitdiff
path: root/migration/socket.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2019-03-12 14:50:50 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2019-03-12 15:18:40 +0100
commit5e78bc6a47dd064c63fbf03d01ec4a3c811157e9 (patch)
tree694c7c1577b3e46c7a83011309c7a7a78d197a05 /migration/socket.c
parent1afee8c3da14bd2daf60f98c940ac60cfab9d8b5 (diff)
migration: fix memory leak
Reported by ASAN. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'migration/socket.c')
-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);
}
}