Thanks for your contribution !

The change has been pushed to master.

Regards, Tim

On 07/10/2018 04:09 PM, Miroslav Lichvar wrote:
> ---
>  lib/idna.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/lib/idna.c b/lib/idna.c
> index 91e34f59..fae707cc 100644
> --- a/lib/idna.c
> +++ b/lib/idna.c
> @@ -658,7 +658,10 @@ idna_to_unicode_4z4z (const uint32_t * input, uint32_t 
> ** output, int flags)
>        buflen = (size_t) (end - start);
>        buf = malloc (sizeof (buf[0]) * (buflen + 1));
>        if (!buf)
> -     return IDNA_MALLOC_ERROR;
> +     {
> +       free (out);
> +       return IDNA_MALLOC_ERROR;
> +     }
>  
>        /* don't check return code as per specification! */
>        idna_to_unicode_44i (start, (size_t) (end - start),
> 

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Help-libidn mailing list
Help-libidn@gnu.org
https://lists.gnu.org/mailman/listinfo/help-libidn

Reply via email to