[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: leaks in slapd
I'm seeing the following when I try to use SASL proxy authorization.
(NB I changed the free to ch_free in connection.c:615)
Any ideas? Should this not be freed at all, or should it be
ch_strdup()'d?
==14323==
==14323== Thread 4:
==14323== Invalid free() / delete / delete[]
==14323== at 0x1B904ABD: free (vg_replace_malloc.c:152)
==14323== by 0x1B95EBEF: ber_memfree_x (memory.c:153)
==14323== by 0x808A9A5: ch_free (ch_malloc.c:138)
==14323== by 0x806EC2B: connection2anonymous (connection.c:615)
==14323== by 0x806ED76: connection_destroy (connection.c:646)
==14323== by 0x806F433: connection_close (connection.c:800)
==14323== by 0x8070F73: connection_resched (connection.c:1571)
==14323== by 0x806FCD1: connection_operation (connection.c:1100)
==14323== by 0x1B920E28: ldap_int_thread_pool_wrapper (tpool.c:489)
==14323== by 0x1BB8D9DC: start_thread (in /lib/tls/libpthread.so.0)
==14323== by 0x1BC50FF9: clone (in /lib/tls/libc.so.6)
==14323== Address 0x32310554 is 5420 bytes inside a block of size 1048576 alloc'd
==14323== at 0x1B9045A4: malloc (vg_replace_malloc.c:130)
==14323== by 0x1B95E9BC: ber_memalloc_x (memory.c:232)
==14323== by 0x808A6EA: ch_malloc (ch_malloc.c:54)
==14323== by 0x80B8BDF: slap_sl_mem_create (sl_malloc.c:121)
==14323== by 0x806F989: connection_operation (connection.c:990)
==14323== by 0x1B920E28: ldap_int_thread_pool_wrapper (tpool.c:489)
==14323== by 0x1BB8D9DC: start_thread (in /lib/tls/libpthread.so.0)
==14323== by 0x1BC50FF9: clone (in /lib/tls/libc.so.6)
-- Luke
--