[Libevent-users] Segmentation fault 2.1.1-alpha

2012-11-11 Thread Bruno Avila
Hi, I had the following in my program after 24 hours runinng: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x71b23700 (LWP 25771)] evdns_transmit (base=0x903a00) at evdns.c:2308 2308if (req->transmit_me) { (gdb) bt #0 evdns_tra

Re: [Libevent-users] Memory management

2012-10-25 Thread Bruno Avila
> > I have a few questions about the memory management of libevent. > > > > 1) I replaced the memory functions of libvevent using > > event_set_mem_functions() with my own functions and I added a counter for > > malloc, realloc and free (Yes, I implemented the special cases realloc(NULL, > > size)

[Libevent-users] Memory management

2012-10-25 Thread Bruno Avila
Hi all. I have a few questions about the memory management of libevent. 1) I replaced the memory functions of libvevent using * event_set_mem_functions()* with my own functions and I added a counter for malloc, realloc and free (Yes, I implemented the special cases realloc(NULL, size) and realloc

Re: [Libevent-users] Free buffer of a http request

2012-09-06 Thread Bruno Avila
requests, I call evhttp_connection_free procedure once. Is this memory leaking? Thanks, Bruno On Thu, Sep 6, 2012 at 3:23 PM, Nick Mathewson wrote: > On Thu, Sep 6, 2012 at 1:13 PM, Bruno Avila wrote: > > Hi, > > > > Once I make an evhttp request (e.g. GET) and read

[Libevent-users] Free buffer of a http request

2012-09-06 Thread Bruno Avila
Hi, Once I make an evhttp request (e.g. GET) and read the content from the evbuffer, which buffers of struct evhttp_request should I free? Or is done transparently by libevent? Thanks, Bruno