mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-07 14:50:22 +00:00
reds: Use GLib memory functions for link
Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
parent
7922e8c78e
commit
e1a8571cea
@ -345,7 +345,7 @@ static void reds_link_free(RedLinkInfo *link)
|
||||
link->tiTicketing.rsa = NULL;
|
||||
}
|
||||
|
||||
free(link);
|
||||
g_free(link);
|
||||
}
|
||||
|
||||
#ifdef RED_STATISTICS
|
||||
@ -2455,7 +2455,7 @@ static RedLinkInfo *reds_init_client_connection(RedsState *reds, int socket)
|
||||
|
||||
red_socket_set_keepalive(socket, TRUE, KEEPALIVE_TIMEOUT);
|
||||
|
||||
link = spice_new0(RedLinkInfo, 1);
|
||||
link = g_new0(RedLinkInfo, 1);
|
||||
link->reds = reds;
|
||||
link->stream = reds_stream_new(reds, socket);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user