[Spice-devel] [PATCH spice-server 05/11] reds: Use GLib memory functions for link

Jonathon Jongsma jjongsma at redhat.com
Mon Sep 18 21:22:46 UTC 2017


This patch doesn't seem to apply to master



On Mon, 2017-09-11 at 16:15 +0100, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
>  server/reds.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/server/reds.c b/server/reds.c
> index 3782e6404..5d7f39621 100644
> --- a/server/reds.c
> +++ b/server/reds.c
> @@ -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);
>  
> @@ -2505,7 +2505,7 @@ static RedLinkInfo
> *reds_init_client_ssl_connection(RedsState *reds, int socket)
>  error:
>      free(link->stream);
>      BN_free(link->tiTicketing.bn);
> -    free(link);
> +    g_free(link);
>      return NULL;
>  }
>  


More information about the Spice-devel mailing list