mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-31 11:28:31 +00:00
reds: Use GLib memory functions for ChannelSecurityOptions
Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
parent
6e2e98383f
commit
13fffbf885
@ -2951,7 +2951,7 @@ static void reds_set_one_channel_security(RedsState *reds, int id, uint32_t secu
|
||||
security_options->options = security;
|
||||
return;
|
||||
}
|
||||
security_options = spice_new(ChannelSecurityOptions, 1);
|
||||
security_options = g_new(ChannelSecurityOptions, 1);
|
||||
security_options->channel_id = id;
|
||||
security_options->options = security;
|
||||
security_options->next = reds->config->channels_security;
|
||||
@ -3708,7 +3708,7 @@ static void reds_config_free(RedServerConfig *config)
|
||||
reds_mig_release(config);
|
||||
for (curr = config->channels_security; curr; curr = next) {
|
||||
next = curr->next;
|
||||
free(curr);
|
||||
g_free(curr);
|
||||
}
|
||||
#if HAVE_SASL
|
||||
g_free(config->sasl_appname);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user