cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [PATCH 1/8] tests: fix memleak in server/resolve.c

From: Peter Wu <peter_at_lekensteyn.nl>
Date: Mon, 10 Nov 2014 14:20:38 +0100

On Monday 10 November 2014 09:08:06 Daniel Stenberg wrote:
> On Thu, 6 Nov 2014, Peter Wu wrote:
> > + if (rc == 0)
> > + freeaddrinfo(ai);
>
> ... this needs to be (freeaddrinfo)(ai) or it goes bananas when built with
> memdebug emabled. I fixed it in my local branch so no need to repost anything.

Ah, I missed the comment above that code. This is quite unexpected behavior, but
that is what you get for overriding standard functions I guess.

-- 
Kind regards,
Peter
https://lekensteyn.nl
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2014-11-10