curl-library
Re: [PATCH 1/8] tests: fix memleak in server/resolve.c
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 10 Nov 2014 09:08:06 +0100 (CET)
Date: Mon, 10 Nov 2014 09:08:06 +0100 (CET)
On Thu, 6 Nov 2014, Peter Wu wrote:
> This makes LeakSanitizer happy.
Thanks!
> + 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.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2014-11-10