https://bugs.openldap.org/show_bug.cgi?id=9365
--- Comment #4 from Howard Chu hyc@openldap.org --- Comment on attachment 772 --> https://bugs.openldap.org/attachment.cgi?id=772 valgrind output on openSUSE Tumbleweed x86_64
There are two items of interest here, one is an uninit'd variable, which was fixed in master 3 years ago in commit 5bd89a1f1f1 but apparently never merged into RE24.
The other appears to be a leak in regexec(), which would be a libc bug. But to be sure - how many operations did you perform, before stopping slapd? The line
==7378== 47,104 bytes in 23 blocks are indirectly lost in loss record 92 of 93
would imply the leak occurred 23 times, and presumably was once per operation.