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
> > 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)
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
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
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