bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] xfree() crashes on libidn memory


From: Jérémie Courrèges-Anglas
Subject: Re: [Bug-wget] xfree() crashes on libidn memory
Date: Wed, 11 Feb 2015 00:54:14 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (berkeley-unix)

Ángel González <address@hidden> writes:

[...]

> Low importance since the cases where idn_free() isn't equivalent
> to xfree() would be marginal, but a bug anyway.

They can't be equivalent: xfree is a macro that calls free(3) then
resets the pointer to NULL.  I didn't check but to be on the safe side
the translation should probably be "idn_free(p); p = NULL;".

-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE



reply via email to

[Prev in Thread] Current Thread [Next in Thread]