[Spice-devel] [PATCH 04/10] server/reds: don't call close on NULL channel on atexit callback

Hans de Goede hdegoede at redhat.com
Wed Jan 12 23:44:31 PST 2011


Ack.

On 01/13/2011 06:01 AM, Alon Levy wrote:
> ---
>   server/reds.c |    4 +++-
>   1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/server/reds.c b/server/reds.c
> index 7b4782c..d79b02c 100644
> --- a/server/reds.c
> +++ b/server/reds.c
> @@ -2202,7 +2202,9 @@ static void reds_init_ssl()
>
>   static void reds_exit()
>   {
> -    main_channel_close(reds->main_channel);
> +    if (reds->main_channel) {
> +        main_channel_close(reds->main_channel);
> +    }
>   #ifdef RED_STATISTICS
>       shm_unlink(reds->stat_shm_name);
>       free(reds->stat_shm_name);


More information about the Spice-devel mailing list