Re: [Libevent-users] [PATCH] Fix possible memory leaks with debugging turned on.

2011-08-15 Thread Leonid Evdokimov
On Mon, Aug 15, 2011 at 19:26, Nick Mathewson wrote: >> Also, feel free to include evdns-example.c as sample of proper evdns >> cleanup if you find it useful. I think, that cleanup is not trivial. > > Hm. I'd like to have something about dns usage in the samples code, > but this one really only co

Re: [Libevent-users] [PATCH] Fix possible memory leaks with debugging turned on.

2011-08-15 Thread Nick Mathewson
On Mon, Aug 15, 2011 at 7:10 AM, Leonid Evdokimov wrote: > I think, I've found couple of memory leaks in libevent debugging code: > the event was not properly unregistered from debug hashtable. Good catch here; thanks! > I run evdns-example using $(valgrind --leak-check=full > --show-reachable=y

[Libevent-users] [PATCH] Fix possible memory leaks with debugging turned on.

2011-08-15 Thread Leonid Evdokimov
I think, I've found couple of memory leaks in libevent debugging code: the event was not properly unregistered from debug hashtable. I run evdns-example using $(valgrind --leak-check=full --show-reachable=yes), I'm attaching three valgrind logs: evdns-example.no-0004.no-0005.log - without 0004-*.